- Home /
name of script to declare
i want to declare a script but my script's name goes like this... "script rotate"
var script : script rotate;
but it returns the error: UCE0001: ';' expected. Insert a semicolon at the end.
Comment
Answer by schwertfisch · Feb 11, 2012 at 04:33 PM
it's because you should write:
var script : scriptRotate;
instead of this (no gap).
then if I changed its name all of the gameobjects attached to it will be changed, i will have to reattach again?
If I understand what you're asking, yes. But you'll have to try either way.