Error loading CSharp - Editor.dll

When I go to save a script I get the following error:

Loading script assembly “Library/ScriptAssemblies/Assembly - CSharp - Editor.dll” failed!

What does this mean and how to I fix? This happened yesterday but cleared up after several restarts of Unity. The one today began after trying to save a script Unity became unresponsive and I had to force quite.

I no longer have the problem, but I am still interested in what is causing it. The fix this time was:

  1. Rename the “Editor” folder from within the Unity Project inspector
  2. Open and try to save a script
  3. Get the UnityEditor namespace error
  4. Rename the “Editor” folder back to “Editor” from within the Unity Project Inspector
  5. Then I could save the script and have it compile. Note: this was not an Editor script, just a Plain Jane MonoBehavior script.

I believe this is a known bug.

Reimporting one of the editor scripts fixes it for me (control click it and choose Reimport from the menu).

I believe this will be fixed in 1.5.1.

Thank you for the responses :slight_smile: It is good Otee already is on this one, whatever it is.