- Home /
Question by
RidlingJambo · May 07, 2014 at 05:02 PM ·
javascriptbooleanfalsesemicolon
Compiler error UCE0001: ';' expected
Hi, I have a compiler error that's saying there's no semi-colon inserted. In my code, however, I'm mostly sure that the ';' 's are in the right place. I would be very grateful if you could take a look
Thanks in advance My code is:
pragma strict
private var guiShow : boolean false;
var riddle : Texture;
function OnGUI()
{
if(guiShow == true) {
GUI.DrawTexture(Rect(Screen.width / 4.5, Screen.height / 4, 1024, 512, riddle));
}
}
Comment
Best Answer
Answer by Landern · May 07, 2014 at 05:03 PM
You forgot the equal sign when setting guiShow:
private var guiShow : boolean = false;
var riddle : Texture;
function OnGUI()
{
if(guiShow == true) {
GUI.DrawTexture(Rect(Screen.width / 4.5, Screen.height / 4, 1024, 512, riddle));
}
}
Your answer
Follow this Question
Related Questions
Boolean problem. 1 Answer
js(9,31): UCE0001: ';' expected. Insert a semicolon at the end. 2 Answers
Can someone help me fix my Javascript for Flickering Light? 6 Answers
Else and If 2 Answers