- Home /
Temp Project Folder In Ramdisk Error
Problem: Unity provides no option to choose where to store "Temp" files. (Should Exist in Editor Preferences).
When unity opens a project, it creates a "Temp" folder under the project. This "dirties" my sweet innocent fragile ssd that would die after a few writes. As a workaround, i created a "Junction" to a ramdisk. Now "temp" folder redirects to my ramdisk's Temp.
Problem: When i open the project, it is not necessary to rebuild it, i kept my "old" library folder where everything is compiled, however unity gives the following error:
NullReferenceException: Object reference not set to an instance of an object at UnityEditor.Scripting.Compilers.ScriptCompilerBase.CompilationHadFailure () [0x00007] in C:\buildslave\unity\build\Editor\Mono\Scripting\Compilers\ScriptCompilerBase.cs:342 (Filename: C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/ScriptCompilerBase.cs Line: 342)
Copying assembly from directory Temp to Library/ScriptAssemblies failed (Filename: Library/ScriptAssemblies/Unity.TextMeshPro.dll Line: -1)
What am i doing wrong? if i used a "normal" folder, it would open the project without an error.