No Monobehaviour scripts in the file
i am fairly new to Unity, but i was able to make a basic game, but all of a sudden after compiling a newer update, all of scripts have the No Monobehaviour scripts in the file under each script. As well when i try to open certain scenes unity stops responding... can anyone help me fix this?
Update: I have tried deleting the library but it didn't fix it.
Answer by G-Reusch · Nov 18, 2016 at 11:03 PM
Just a hunch, but it sounds like your project solution (the files that tell Unity about all of your scripts) might be corrupted. Try deleting all the Visual Studio files in your project directory, then double clicking the scripts in Unity again (this will make Visual Studio recreate the files). Deleting the Library folder might also fix the problem.
I deleted the library file, but every time I open the project it opens the bug reporter...
i managed to fix the textures by installing unity again... but the scripts are still broken, I deleted the library, and it did nothing. Where are the visual studio files located, i can't find anything called the project directory, is it broken completely?
I managed to fix it, i made a new project imported everything over (except the scripts) and copied the scripts into a new script with the same name. Then i altered everything with the scripts so that they used the new scripts, and everything worked!
Your answer
Follow this Question
Related Questions
Unity crashes when compiling this script. Where is the problem? 0 Answers
unity keeps crashing when importing assets and when writing scripts 0 Answers
Unity crashes because of a certain function 0 Answers
Missing script after build, but no referenced gameobject in scene. 2 Answers
Dodgeroll script crashing game 0 Answers