All compiler errors have to be fixed before you can enter playmode! UnityEditor.SceneView:ShowCompileErrorNotification() but my script has 0 errors
i don't get it
Answer by ADAMN721 · Apr 28, 2017 at 08:58 PM
I had this problem the other day. I believe this is just a Unity bug. What I understand it as is there is some errors in the editor and it is failing to compile because of that. However, in my case, it was still allowing me to enter playmode. It just wouldn't allow me to do a build.
Heres what I would suggest checking:
Make sure you can do a build of your code outside of Unity. This will tell you that your code is good.
Restart Unity and try to go into play mode again. Although this most likely won't fix the error, it will hopefully trigger Unity to actually tell you what the problem is.
My last trick is try making a change in any of your scripts and then change it back again. Each time you make a change and save a script, unity recompiles.
Your answer
Follow this Question
Related Questions
Error upon rebooting Unity - "Associated script cannot be loaded" How can I resolve this? 2 Answers
Object reference not set to instance of an object? 0 Answers
Error status 0xc0000020 unity 5.4.0f3 2 Answers
I Need help with scripting a first person camera? 1 Answer
File error on new project 1 Answer