Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: key on August 18, 2017, 11:27:20 AM

Title: Error in samples [SOLVED]
Post by: key 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.
Title: Re: Error in samples
Post by: jeanfabre 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
Title: Re: Error in samples
Post by: key on August 21, 2017, 12:22:46 PM
Thank you, Jean ;D