- Home /
Problem with Mono compiler
Since I updated to the latest version of Unity, I'm getting some problems with a handful of scripts that only execute in Editor mode. I've narrowed it down to the scripts that are having issues, but the error message I'm getting is not helpful at all. All it says is:
The compiler this script was imported with is not available anymore.
(Filename: C:/BuildAgent/work/842f9557127e852/Editor/Src/AssetPipeline/MonoCompilationPipeline.cpp Line: 507)
I don't know what in particular about the script is causing it to encounter this error since that's all the information I'm getting, but it's preventing the script from saving any of it's internal variables, which is pretty important.
Any ideas on how I should go about debugging something like this?
You should file a bug about this and include your scripts or projects with it. It might be that the scripts are using some API calls that were only implemented in a later version of Unity, but you are using an old version of it. Try downloading the latest Unity version and see if you still get the error.
I feel pretty sheepish now. Switching between projects seems to have cleared up the compiler error.
The other half (not saving variables) turns out to be unrelated. I didn't realize that Unity couldn't serialize jagged arrays and that's why they weren't being saved. I re-wrote those portions of the tool using a custom serializable class and all my information is being saved just fine now.
Hi, Just got the same error here. And no idea what's going on? Any new insight?
Im getting a error that says (All compiler errors have to be fix before you can enter play mode) I don't know what to do
It means you have errors in one or more of your scripts. You should see the errors in the Console window (which you can open from the Window menu). Fix the errors and when your scripts are compiling with no errors, you will be able to press the Play button and run your game.