- Home /
UNITY Scripting - True and False not working!
I've seen a few others going around with this problem, but no fixes as of yet. in my Java script I have a problem, where the script is not recognizing "true" and "false". The script is below:
This is quite annoying. I'm just learning how to use Unity, and I'm pretty sure that True and False are recognized commands. if anyone knows how to fix this, please share.
Define "not working". Compiler error? The script isn't doing what you expect? Something else?
Answer by Eric5h5 · Dec 05, 2010 at 07:24 PM
True and false work just fine. If you're referring to syntax highlighting, that's up to whatever editor you're using, nothing to do with Unity.
The highlighting isn't working, I understand that doesn't mean true and false are not working, but they don't seem to work either.
Hey guys, figured it out, thanks for the help Eric, I actually had fallout in caps on the tags, oops. XD thanks.
Answer by David 17 · Dec 05, 2010 at 10:19 PM
Hey everyone, I'm David, I decided to register, and use a different account name, anyway, in Tags, the "Fallout" was type like so, and had a cap, yet in the script it did not, if anyone gets this error, please check both to make sure they are IDENTICAL!
Thanks.
someone can close this now.
Answer by AVividLight · Jan 21, 2011 at 11:09 PM
Don't you need to set the variable as boolean, and assign it false later?
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
how can i disable scripts trough another script? 1 Answer
scripting is not working for words "true" & "false" 1 Answer
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Script Error!! 1 Answer