Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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,
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 if (Input.GetKey (KeyCode.LeftShift) | Input.GetKey (KeyCode.RightShift))
I don't know javascript... is a || needed there? Thanks for any assistance.
-
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
-
Thank you, Jean ;D