Unity3d - Fatal error! : The current working directory was changed from your Unity project folder located at xxx to yyy
Unity3d - Fatal error! : The current working directory was changed from your Unity project folder located at xxx to yyy
Test on: Mac OS X Yosemite
Unity3d 4.6.0f3
[Error]
Fatal error!
The current working directory was changed from your Unity project folder located at xxx to yyy.Trash/xxx. This is not allowed! If you are setting the current working directory from script temporarily, then please make sure to set it back to the Unity project folder immediately after you are done.
[Solved]
Goto your Trash, right-click on your Unity project refer to yyy.Trash/xxx and choose "Put Back".
[How]
Because of you're currently working on project "A", then you remove your project "A" to Trash by "Move to Trash". After that you try to open project "B" about sample_name.unity. This error will occur.
Test on: Mac OS X Yosemite
Unity3d 4.6.0f3
Fatal error!
The current working directory was changed from your Unity project folder located at xxx to yyy.Trash/xxx. This is not allowed! If you are setting the current working directory from script temporarily, then please make sure to set it back to the Unity project folder immediately after you are done.
[Solved]
Goto your Trash, right-click on your Unity project refer to yyy.Trash/xxx and choose "Put Back".
[How]
Because of you're currently working on project "A", then you remove your project "A" to Trash by "Move to Trash". After that you try to open project "B" about sample_name.unity. This error will occur.


This is a good reminder that Unity’s internal file and directory tracking can be fragile if a project is moved or deleted mid-session. The error happens because Unity expects the working directory to remain constant while referencing its asset and library paths. Once the project gets moved to Trash, those relative paths break, leading to the fatal error.
ReplyDeleteYour fix is spot on—restoring the project from Trash resets the working directory so Unity can find its original context again. Another helpful practice is to avoid moving or renaming project folders while Unity is open. Instead, close the editor first, perform any file operations, and then reopen the project.
It’s the same kind of disciplined workflow that applies to other QA and development tools. Keeping environments stable helps prevent subtle state or path-related bugs. For structured test management that encourages this kind of consistency, tools like Tuskr test management software can help teams stay organized while minimizing setup errors.