Follow

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

Symptoms

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

All compiler errors have to be fixed before entering playmode

Cause

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.

Resolution

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?
1 out of 15 found this helpful
Have more questions? Submit a request

20 Comments

  • -1
    Avatar
    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
  • 3
    Avatar
    Rawal App786

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

    [02:23:22]

  • 1
    Avatar
    Anonymus Fun

    Me too, instantly when i open it shows me this http://prntscr.com/lzfwzk

     

  • 5
    Avatar
    Traumend Tenshi

    same here, and its a totally new proyect (havent touch a thing)
    https://imgur.com/a/gQNNnbC

  • 3
    Avatar
    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....

  • 2
    Avatar
    Garrett Deblois

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

    https://forum.unity.com/threads/four-blank-errors-in-each-new-project.599980/

  • 0
    Avatar
    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
    Avatar
    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
    Avatar
    Maru

    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 https://forum.unity.com.

    Alternatively, if you believe that this may be a bug, please feel free to follow the process outlined at https://unity3d.com/unity/qa/bug-reporting for details on how to submit a bug report.

  • 1
    Avatar
    William Keating

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

    to use Ginger
    Limited mode
    You
    ×
  • 2
    Avatar
    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
    Avatar
    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)

  • 0
    Avatar
    satyajeet

    go to Edit > Project Settings > Player tab > Expand "Other Settings" and change the "Scripting Runtime Version*" from NET 4.x Equivalent" to ".NET 3.5 "  

  • 1
    Avatar
    Eduardo Hernandez Hernandez

    this happens to me, by only opening Unity, why does this happens? it's because of my computer?

  • 1
    Avatar
    Maru

    Hi Eduardo,

    I've had a look into this and from what I can see, the error you are getting is part of a bug with the particular version of Unity that you are using.

    If you upgrade to a patch higher than what you have now, the error should disappear. In the event that it does not, please do not hesitate to come back to me.

  • 0
    Avatar
    Nandakishore P

    I think you didnt installed all the standard assets check in console what is the problem and then I also had a problem of this same That was I didnt installed crossplatform . Sorry for my english.

  • 0
    Avatar
    Nben

    Hi,

    Everything was working perfect, and then I changed the build settings from PC, Mac and Linux to mobile. Suddenly it didn't work. Changed back to PC, Mac and Linux, and still. It says I have to resolve all compiler errors, but there are none. I also can't see my console anymore for some reason.

  • 0
    Avatar
    Kamran Abbasov

    I had problem in windows 7, so I found how to fix 4 blank error problem, you need only update the windows and then all wil lwork correct without errors..

    And addition I want to say when you install unity on unityhub after installation you can see that writing sentence about update windows kb231345( numbers not real I forgot )  so this is your problem, I think most users made dismiss and not see this, and this is problem blank error,thanks all, hope this will help more users.

  • 0
    Avatar
    Sabrine Renault

    OOH THANKS MARUU <3 <3 i love you

  • 0
    Avatar
    Tech Bro

    Unity is showing this error in every script even when i am using standard assets or any asset this error cames (unity 2019.1)

Please sign in to leave a comment.