Hey guys
I’m trying to adjust the size of the text on my screen for my HSC major work but keep getting this error message
“Assets/Script/Menu Character.js(10,17): UCE0001: ‘;’ expected. Insert a semicolon at the end.”
here is the code that i sourced from a unity help forum
function OnGUI () {
GUIStyle myStyle = new GUIStyle(GUI.label);
myStyle.fontSize = 50;
GUI.Label(Rect(0,0,Screen.width,Screen.height),"W = Walk Forward
S = Walk Backwards
A = turn left
D = Turn Right" ,myStyle);
}
The line noted by unity as needing a ; at the end already has one. “GUIStyle myStyle = new GUIStyle(GUI.Label);”
any help regarding this error in my code would be much appreciated =) Thanks