- Home /
Question by
demille123 · Apr 09, 2013 at 08:29 PM ·
gameobjectreference
calling a script that starts a number.
i just came over a problem on calling a script. i was about to call a variable from another script that has a scriptname that starts a numeric value like (2-2scene.js). i tried the var other: 2-2scene; but it has errors.(about unexpected token). please help me.
Comment
Best Answer
Answer by iwaldrop · Apr 10, 2013 at 01:34 AM
A script name cannot contain a number. Just pick a name that only contains regular alphabetic characters and type it in PascalCase.
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Null reference when calling a method from another script 1 Answer
Simple Script getting Errors. 1 Answer
Question Concerning transform.Rotate 1 Answer
Rotate camera around gameobject 1 Answer