- Home /
problem at adding script
When I Try To Attach a script it says: Can't Add Script Can't Add Script behaviour tempGen_V0.2. The Scripts file name does not match the name of the class defined in the script! What is The Problem?
oh i renamed it to generator2.js and maked a start function cuz before there were no functions. it is fixed
Answer by Statement · Mar 03, 2011 at 12:04 PM
What is The Problem?
The Scripts file name does not match the name of the class defined in the script.
Seems you answered your own question.
In an attempt to clarify this;
Your class must have the same name as the file (without the extension).
Also I think you should strip off the dot in your class name (tempGen_V0.2).
Your answer
Follow this Question
Related Questions
Script Errors Not Sure Why 0 Answers
Animation Script Error 1 Answer
Can't Add Script 1 Answer
Scripting error #2! 2 Answers