Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
-1
Question by David 17 · Dec 05, 2010 at 07:00 PM · falsenot-workingtrue

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: alt text

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.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Eagle32 · Dec 05, 2010 at 09:21 PM 0
Share

Define "not working". Compiler error? The script isn't doing what you expect? Something else?

3 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

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.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image David 17 · Dec 05, 2010 at 07:42 PM 0
Share

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.

avatar image David 17 · Dec 05, 2010 at 09:57 PM 0
Share

Hey guys, figured it out, thanks for the help Eric, I actually had fallout in caps on the tags, oops. XD thanks.

avatar image
0

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.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image fireDude67 · Jan 21, 2011 at 11:35 PM 0
Share

theres a delete button below your question

avatar image
0

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?

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges