Why do I get a "All compiler errors have to be fixed before you can enter playmode!" error?


When trying to enter play mode, I am receiving the error below:

All compiler errors have to be fixed before entering playmode


If any of the scripts in your Unity project have errors that do not allow Unity to compile the scripts, then this error will be displayed. You will not be able to enter play mode if this error is present.


You will need to look at all errors that are being flagged in the console and fix them. 

Note: If you cannot see any errors in the console but the message still appears it may be an issue with a script using the namespace UnityEngine.Networking;

If the script is not being used then comment out the sections where the errors appear. 

Once all scripts are free of errors, Unity can compile the scripts and you can enter play mode.

More Information

Was this article helpful?
0 out of 11 found this helpful
Have more questions? Submit a request


  • 0
    Elijah White

    Might I be getting this error or a similar error if I had misspelled a key name in "input.GetKeyDown()"? Or maybe it's all-caps and it's supposed to be all lower-case?

    Edited by Elijah White
  • 1
    Rawal App786

    i am opening unity and 4 error this types on my display to console


  • 0
    Anonymus Fun

    Me too, instantly when i open it shows me this


  • 1
    Traumend Tenshi

    same here, and its a totally new proyect (havent touch a thing)

  • 3
    Faith Magnolia

    I'm making a Roll a ball game using the video tutorials and I literally did everything he said to do, copied and corrected the codes and all, but it still says it. I'm crappy at coding myself, so I honestly have no idea what part I coded wrong....

  • 1
    Garrett Deblois

    I was able to find a fix for this 4 blank errors issues. See my post here:

  • 0
    Shea Duarte

    I was having the same issue with the four compiler errors showing up on all my projects out of the blue, even new ones. The solution for me was to update my assets package (remove the old one and download the new one). I was using an outdated one and when Unity updated the old sample assets were not compatible.

  • 0
    Richard Targett

    I cant get the PlayerController to goto Player in the Camera Script.

    If thats not the problem, it says this in the errors.

  • 0

    Hi there,

    Thank you for your messages. I'm sorry to hear that you folks are having issues.

    I can recommend that the thread Garrett posted on the 31st December does seem to address the majority of the issues posted here. If you are still experiencing any issues with this, please do not hesitate to post on our forums for technical assistance at

    Alternatively, if you believe that this may be a bug, please feel free to follow the process outlined at for details on how to submit a bug report.

  • 1
    William Keating

    You are saying fix the problems I already know I have to do that not helpful

    to use Ginger
    Limited mode
  • 1
    Jude McAuley Cotter

    What worked for me in the 2d game tutorial which I found on another thread was to go to Edit > Project Settings > Player tab > Expand "Other Settings" and change the "Scripting Runtime Version*" from ".NET 3.5 equivalent (Deprecated)"  to ".NET 4.x Equivalent" . 

    The original answer I found asked to do the reverse of this, but this is what worked on my iMac running Unity 2018.3.4. Hope it helps someone else.

  • 0
    Daniel Brazell

    Unity isn't even giving me any errors. I was able to enter playmode earlier and it suddenly stopped working right when I needed it to work for my school assignment. I attempted Jude McAuley Cotter's solution to no avail. (My game is also 3D)

Please sign in to leave a comment.