watched a few tutorials on youtube for making a video game. i have ZERO experience, but everyone starts somewhere right? =) to the point…the script he was writing in the video had a lot of colorful text (if(Input.GetButtonDown(“Jump”))) was the specific line i noticed. the “getbuttondown” on his was colored, mine was not…why? also, he was using unity 2.6 (video from 09 i believe) and i am 100% sure that both of us were using javascript. i guess it does not really matter, as it still played the same as the tutorial.
It just depends on the text editor you’re using I guess.
All the colored text that you said you didn’t have any color on are the Unity’s function.
It doesn’t matter as you said at the end, but if you want some coloration, you could use either the default editor (not available anymore since the 3.5 version of unity) called Unitron (mac) or Uniscite (windows) or Monodevelop (which is included as well when you install unity)
I’m assuming your watching the tornado twins tutorials? They are using a mac so that might explain things. The windows and menus are different than pc. Also, there are many different script editors for editing code. The appearence varies from editor to editor. Although, the script its self should not be affected by the type of editor being used.
Thank you for the reply. I have windows, downloaded 3.5 version last night. Do you know of any free script editors that are compatible with 3.5? I think the color makes it easier to see if I’ve typed something wrong, especially while following along with a tutorial.
They are still available and included with Unity 3.5. They include syntax highlighting, and so does Monodevelop.
–Eric
Yes, it is the tornado twins. It worked just as it should have, just seems like i could benefit from the colored text. I thought it was maybe a setting he messed with that didn’t mention.
if you’r using MonoDevelop, you can chage you color setting inside Tool > Preferances > Text Editor > Syntax highlighting.
you can choose your color scheme.
Thank you for all the replies. I cannot find where uniscite is located within 3.5. I also tried changing to all other options and can’t get it to change like i saw it. strange. i also went to the post about the tank that was just on here and pasted it in my editor, same thing, he had a lot more color.
programs/unity/editor/data/tools/uniscite, found it! i set uniscite as default but its still the same problem. when i type:
function Update () {
Update stays black…any other advice to fix this?
var movement = Input.GetAxis(“Vertical”);
var and “Vertical” are the only words with color on this line…“movement” should be the only one without color.
There are also a lot of program’s that won’t give you any syntax highliting until you saved the file (so they know for sure witch language your programming in. Have you tried that? And otherwise trie saving a file and then opening it
I downloaded another editor, “1st Javascript Editor” and I still can’t get the highlighting correct. I tried what Crash suggested in all 3 editors, with no luck. I did notice when I ran Unity this morning, it says, “Your 64 bit Windows installation is missing an important service pack patch. Please apply http://support.microsoft.com/kb/976038 to ensure stability.” Perhaps this has something to do with it.