Can't Enter Playmode

It keeps giving me this error and I really don’t understand what it means:

DirectoryNotFoundException: Could not find a part of the path “C:\Users\ender\Desktop\Blender-to-Unity-Character-Creation-master\Blender-to-Unity-Character-Creation-master\Unity Projects\E09 Character Controller\Library\PackageCache\com.unity.analytics@3.2.2\Tests\Editor\Unity.Analytics.StandardEvents\Unity.Analytics.StandardEvents.EditorTests.asmdef”
System.IO.FileStream…ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) (at :0)
System.IO.FileStream…ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) (at :0)
(wrapper remoting-invoke-with-check) System.IO.FileStream…ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
System.IO.StreamReader…ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize, System.Boolean checkHost) (at :0)
System.IO.StreamReader…ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) (at :0)
System.IO.StreamReader…ctor (System.String path, System.Boolean detectEncodingFromByteOrderMarks) (at :0)
System.IO.StreamReader…ctor (System.String path) (at :0)
(wrapper remoting-invoke-with-check) System.IO.StreamReader…ctor(string)
System.IO.File.ReadAllText (System.String path) (at :0)
UnityEditor.Scripting.ScriptCompilation.EditorCompilation.LoadCustomScriptAssemblyFromJson (System.String path) (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilation.cs:463)
UnityEditor.Scripting.ScriptCompilation.EditorCompilation.SetAllCustomScriptAssemblyJsons (System.String[ ] paths) (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilation.cs:681)
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:SetAllCustomScriptAssemblyJsons(String[ ])

I also get this warning: Cannot set VR devices because the platform passed isn’t supported by Unity.

Any help?

I had exactly the same problem. I found out that the path name throwing the error is too long (in this case, “C:\Users\ender\Desktop\Blender-to-Unity-Character-Creation-master\Blender-to-Unity-Character-Creation-master\Unity Projects\E09 Character Controller\Library\PackageCache\com.unity.analytics@3.2.2\Tests\Editor\Unity.Analytics.StandardEvents\Unity.Analytics.StandardEvents.EditorTests.asmdef”).

In my case, the problem was fixed by simplifying directory names. In your case, you could try to rename “Blender-to-Unity-Character-Creation-master” directories and see if the problem is resolved.

3 Likes

It works fine Sir, Thank you so much

Thanks, shortening the directory did work

Work for me too! Thank you so much.