- Home /
Problem with upgrading project to untiy 3.
Hi,
I upgraded my project from 2.6.1 to 3. Almost everything in editor was fine, but after building, it doesn't work. and it shows this error in "output_log.txt" :
the class defined in script file named 'myScript' does not match the file name!
Despite my script is java I added the class declaration in that script but nothing happened. What should I do?
Answer by azzogat · Jan 16, 2011 at 01:50 PM
Make sure the script's name is exactly as the class's. So when creating a new class named myScript, the script file should also be called myScript.
See here for more info.
I'm using java,so the class name should automatically change to script's name. However I create the class declaration myself but it didn't work.
Your answer
Follow this Question
Related Questions
Script acts differently since upgrade to Unity 3 5 Answers
Unity 3.0 Upgrade ? 1 Answer
Unity 3.1 shader upgrade issue with Blend AppSrcAdd AppDstAdd 1 Answer
unity3 problem with assetbundle 0 Answers
Unity 3.0 help mee 4 Answers