I’m trying to follow the introduction notes on scripting and have created the script
function Update () {
Transform.Rotate(0, 5*Time.deltaTime,0);
}
When dragging it to an object it puts up an error message saying
“Can’t add script, script “RotateY” has not finished compiling yet”.
Thanks.
anon_62918375:
I’m trying to follow the introduction notes on scripting and have created the script
function Update () {
Transform.Rotate(0, 5*Time.deltaTime,0);
}
When dragging it to an object it puts up an error message saying
“Can’t add script, script “RotateY” has not finished compiling yet”.
Thanks.
Wait a little bit, then try again. If that does not work restart Unity. If that does not work try restarting your computer!
Thanks, I re-created the script and then it worked. I then realised the working one is transform.Rotate rather than Transform.Rotate which I’m assuming was the problem!