I was getting this error with 2.5.1, so tried upgrading to Unity 2.6 and now I get it even more often:
If I open up a new scene in the editor, 9 times out of 10 it starts failing to load script assemblies and stuff, and then gives a Fatal Error: “The current working directory was changed from your Unity project folder located at … to … This is not allowed! …”
I can’t think of any scripts of mine that would be changing the working directory - does anybody else experience this, and have any ideas what the cause is? It’s really frustrating!
I’m running Windows Vista.
In fact, it seems that even pulling up the “Open Scene” dialogue is sufficient to trigger the error - I don’t even need to actually go as far as opening another scene.
Have you moved assets from folder to folder on the desktop rather than in Unity? Unity caches data about the files in a project, so it sometimes chokes if files are moved unexpectedly. If you can identify a particular change you have made, then you might be able to solve the problem by putting it back as it was before opening Unity.
I did have a little accident earlier where I dragged a folder into another folder instead of opening it. But I moved it straight back.
Is there any way I can rebuild the cache to fix the issue, if that’s it?
Anybody got any ideas? I’m still getting this a week later.
check out in which folder it should be and move it there unless the folder is in c:\users
As I said, I moved the folder straight back to where it should have been after the mistake was made.