- Home /
The question is answered, right answer was accepted
UCE0001: ';' expected. Insert a semicolon at the end
UCE0001: ';' expected. Insert a semicolon at the end
i got that error messsage after i put a script to my model actually im trying to follow this tutorial : http://www.youtube.com/watch?v=y9eJhD0r3H0 with different model and animation files...
here is my script
pragma strict
var ani : Animator; function Start () { ani = GetComponent(Animator); }
function Update () { var v float = Input.GetAxis("Vertical"); ani.SetFloat("Speed",v); }
Answer by Simon-Larsen · Apr 09, 2014 at 12:35 PM
Please use the code tag "101 010" when posting your code.
Your issue is that you forgot the colon between your variable name and its type.
Change
var v float = Input.GetAxis("Vertical");
to
var v : float = Input.GetAxis("Vertical");
Follow this Question
Related Questions
How to make camera position relative to a specific target. 1 Answer
Error in script 1 Answer
simple animation 1 Answer
Blender FBX repeated animations 1 Answer
issues with animation :( 1 Answer