Symptoms:
- When I try to play my scene in Unity, an error appears saying all compiler errors must be fixed first.
- I don't know where to find the errors in my script.
Cause:
Compiler errors are generated by a script that has erroneous code. When you create a script in Unity and click play to test the script is working, you may receive some bright red error text in the collapsed version of the Console located in the bottom left corner of the Unity Editor:

The red text is the type of compiler error in your script. The white text with a red warning icon shows the specific compiler error details in your script that need fixing.
Please note: Unity will not let you play the scene until all compiler errors have been fixed. |
Resolution:
Double-click on the white text or go to the Window/Console (Ctrl+Shift+C in Windows).
The full Console should be visible. You may need to reset your layout first with Window/Layouts if you cannot find it.
Double-clicking on the error message details triggers the script to open directly, and it should even take you to the exact line where the error was generated so you can fix the error described.
After you have fixed the error, save the script and click on Unity. Unity will compile your changes and write any errors to the Console. Continue to fix errors until there are none.
More Information:
See the article, 'Why do I get an "All compiler errors have to be fixed before you can enter playmode!" error?', for more information on why you cannot enter Play mode with existing compiler errors.
Comments
19 comments
when i double click on the error it is not responding ,,,
and the error remain how could i fix it .
pls i'm having the same problem.....
i fixed it it is appeared in new version of unity ,,in 2018.2 there is no error ,,but u also can fix it in 2018,3 ----- go to edit-project setting-player -other settings --configuration-and finally change the rune time version from net 4 to net 3.5 ,,it will work
I have same problem in unity 2019.1.4f1 and I try to change it from net framework 4.0 to 3.5 didn't work and I have lastest version from net framework 4.0 and I try 2018 version and it didn't have same problem.
I'm having same problem like AbdelrhmanAhmed in unity 2019.1.4 please someone help struggling for solution from past 4
all projects for me have compiler errors (2019.3.0a7) that version is scuffed
i cant even make a game with a stupid compiler that makes everything "error"s

I have got the same problem, but I am sure my code is correct because after alots of compiler errors i copy and pasted the code from the tutorial i am using(3d beginner project Jonh Lennon). My progress in unity is blocked because of this. Pls help!!!
In my project setting - player - configuration - has not showing any 4 (or) 3.5 setting. Why is this happening? Pls Anyone help for this solution....
me to and im gona rage
Just installed unity3d on to Ubuntu, and this answer worked for me. Thanks Ahmed.
AbdelrhmanAhmed
fixed it it is appeared in new version of unity ,,in 2018.2 there is no error ,,but u also can fix it in 2018,3 ----- go to edit-project setting-player -other settings --configuration-and finally change the rune time version from net 4 to net 3.5 ,,it will work
i am new in unity and i am having compiler errors .
i do not know how to fix it plz some one help
The problem is with Unity 2019, install 2018 and use that instead.
Every time i open my unity, I am having the same problem. And no tricks work for me and i have tried all hooks found on internet but it didn't work anyhow.
Current version - 2019.4.4f1 (using) and previous - 2019.3.15f1
Please help me solve this out, please...
Thanks.
i am also facing this issue plz help
https://newanotherpanel.com/
Any one who has this problem,
'Temp/UnityEngine.TestRunner.dll'
'Library/ScriptAssemblies/UnityEngine.TestRunner.dll' failed
you have 2 Trojans on your computer that are downloading bitcoin you need to dl this program https://www.malwarebytes.com/mwb-download/ run it do the free trial version, set up and scan your computer it will find the 2 Trojans then press the quarantine button, then close unity and open it, the problem is gone, the program costs $30 for the full version but it gives you a 30 day trial, I am 100% going to buy this when the trial runs out. If any one is trying to do the fps microgame tutorials and can get the play button two start because of the two errors this is the fix its them lil bloody Trojans stopping you from getting ahead in unity. hope this helps.
cheers
john.
john green
you sound like a scammer not more
Arre Nieminen
No scam download it or don't download it worked for me though
How come no one is discussing how to read the error codes? All I want to know is, does the error code numbers for example (37,1) refer to anything? Like does the first number indicate the line of code and the last number how many characters within that line? I double click it and it does nothing...my code is precise to what the instructors is and I'm getting error codes and it's frustrating. I reset it and then I get only 2 error codes instead of 4...guess I'm getting the full coding experience with the headache 8)
Zach Vieweg Something like Shannons law should reference all those errors its a big big book though. Or one of the main theorems
Please sign in to leave a comment.