playMaker

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

key

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
Error in samples [SOLVED]
« on: August 18, 2017, 08: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, 09:23:32 AM by key »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14585
  • Official Playmaker Support
    • View Profile
Re: Error in samples
« Reply #1 on: August 20, 2017, 11:14:54 PM »
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
    • View Profile
Re: Error in samples
« Reply #2 on: August 21, 2017, 09:22:46 AM »
Thank you, Jean ;D