This question was
closed Aug 01, 2016 at 03:17 PM by
Landern.
Question by
Aliyaan · Aug 01, 2016 at 03:16 PM ·
javascriptuce0001semicolonexpected
js(9,30): UCE0001: ';' expected. Insert a semicolon at the end.
Hi, I'm new to unity and trying to make a game (From YouTube) but when ever I reach at scripting, I always have some sort of problem. When I was scripting today, when I saved it, it gave me several errors and I clear all of them but can't find a solution for this one. Where to put that semicolon, I already have putted that in the end and the location which the error is showing, I can't put there, if I do, then they gave 2 or 3 new errors. Please help me! Here's my script:
#pragma strict
var rotationSpeed = 100;
function Update ()
{
var rotation : float = Input.GetAxis ("Horizontal") * rotationSpeed;
rotation *= Time.deltaTime;
GetComponent.<Rigidbody>rigidbody.AddRelativeTorque (Vector3.back * rotation);
}
Comment
Follow this Question
Related Questions
Expected ";" when assigning variable. 0 Answers
Semicolon expected before end of line 0 Answers
';' expected. Insert a semicolon at the end. Already have one 1 Answer
Where to put ; 2 Answers
';' Expected Please insert semi colon here (3,13) HELP 2 Answers