playMaker

Author Topic: Error in samples [SOLVED]  (Read 1247 times)

key

  • Playmaker Newbie
  • *
  • Posts: 8
Error in samples [SOLVED]
« on: August 18, 2017, 11:27:20 AM »
I'm learning Unity & PlayMaker, and I've downloaded the samples to try to figure things out. So I dl'd the "PlayMaker Sample Scenes" at http://www.hutonggames.com/samples.php, and received the error,
Quote
Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js(193,54): UCW0003: WARNING: Bitwise operation '|' on boolean values won't shortcut. Did you mean '||'?

The line of code referenced is
Code: [Select]
if (Input.GetKey (KeyCode.LeftShift) | Input.GetKey (KeyCode.RightShift)) I don't know javascript... is a || needed there? Thanks for any assistance.
« Last Edit: August 21, 2017, 12:23:32 PM by key »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Error in samples
« Reply #1 on: August 21, 2017, 02:14:54 AM »
Hi,

You can safely ignore this warning or indeed replace | with || and the warning will go away without affecting the logic and how the scripts runs.

Bye,

 Jean

key

  • Playmaker Newbie
  • *
  • Posts: 8
Re: Error in samples
« Reply #2 on: August 21, 2017, 12:22:46 PM »
Thank you, Jean ;D