- Home /
Error UCE0001 ';' Expected.
I know there's a tonnes of questions like this one but I can't find any solutions that solve my problem. Here is my code:
#pragma strict
var speed : float = 2.0f;
var fire : GUI_Fireworks;
var launched : float = 0;
var fwObj : GameObject;
function Update(){
if (fire.fire == 1 && launched == 0)
{
Instantiate(fwObj, transform.position, transform.rotation);
}
}
Assests/.../ClickToLaunch.js(13,6) : UCE0001: ';' expected. Insert a semi-colon at end.
I can't see any errors in this at all, so I'm a bit confused.
i see nothing wrong in that part, it must be somewhere else, is it inside a namespace you forgot to close?
Line 3 doesn't give you an error?
Okay cool, learned something new.
Destran, line 3 does not give me an error, I am accessing a variable from a different script to control the action that occurs in the Update function of this script.
ValooFX there is nothing wrong with the namespaces that I can see.
The script above compiles fine for me (created a GUI_Fireworks script with a 'fire' variable to test it). Comment everything out and bring them back a small piece at a time.
Answer by AimlessGiant · Mar 25, 2014 at 05:24 PM
Unity was having library issues and after reimporting all my assets the issue was resolved. Thanks for your help.
Your answer
Follow this Question
Related Questions
js(9,31): UCE0001: ';' expected. Insert a semicolon at the end. 2 Answers
; expected. Insert a semicolon... C# & JavaScript 2D Controller 0 Answers
I need help with an error 1 Answer
Wierd problem with abstract classes and import statements in Javascript 2 Answers
How to declare and initialize multidimensional arrays JS? 4 Answers