Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by RiverKidFiction · Feb 10, 2016 at 05:32 PM · scripting problemscripting beginnerscriptingbasicstutorial

Words in my script don't turn blue, why not? (absolute script noob)

Hello everybody,

Let's assume I don't know jack about scripting (which is true). I'm doing this tutorial from the Unity site on procedural cave generation, but several of the words that my all-knowing instructor is typing into his script (at the speed of light, I might add) turn blue for him, but not for me.

The video: http://unity3d.com/learn/tutorials/modules/advanced/scripting/procedural-cave-generation-pt1?playlist=17153 The code up to where I managed to get to can be found at 3:08.

For example, the words "width", "height", "randomFillPercent" and "map" all just stay black for me when I type them. I know that blue words are keywords that do something (?), and I'm pretty sure the fact that they don't turn blue for me is going to be a problem.

Any suggestions would be greatly appreciated, as I would very much like to get better at this.

Thanks in advance!

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 Jessespike · Feb 10, 2016 at 06:02 PM 0
Share

The color theme? Are you sure this a problem? Try it first then ask a question if you have a problem.

3 Replies

· Add your reply
  • Sort: 
avatar image
-1

Answer by seevenup · Feb 10, 2016 at 06:41 PM

Im a noob to, but i guess u need to post your code. but when width and height dont change the color you did not set the variable (at the top of his code)

 public int width;
 public int height;

when this is done you should be able to type the width and it will change it's color

or save your script i think then it checks the variable and will change it's color

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
avatar image
0

Answer by meat5000 · Feb 10, 2016 at 06:52 PM

Which program do you use to edit your scripts? Notepad-standard doesnt do KeyWord highlights.

If you find that (in Mono or VS) Keyword highlighting is broken, the chances are you have incorrectly set up your .cs or .js file and as such, is not being recognised as being a file in that language. In this situation for all intents and purposes it may as well be Twice Derived XML Alien Edition.

If all else fails, just check the prefs in Mono/VS/Notepad++.

I use Notepad++ because I live Vanilla. You must remember to select the correct language from the menus.

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
avatar image
0

Answer by RiverKidFiction · Feb 11, 2016 at 05:25 PM

@meat5000 Thanks! I was working in Mono and you were right:it was the syntax highlighting that was the problem. Next time it should at least fail for a different reason~

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Scripting help? 2 Answers

How to add information to an instantiated object 0 Answers

The type or namespace function could not be found 1 Answer

Acess first object in Generic list - C# 1 Answer

Unable to pass values from one script to another 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