Search found 2 matches

by allocate
Wed Jun 03, 2020 9:25 am
Forum: General Discussion
Topic: DirectoryNotFoundException: Could not find a part of the path
Replies: 2
Views: 1006

Re: DirectoryNotFoundException: Could not find a part of the path

Unity always uses forward slashes, regardless of platform, so you should instead do: Very interesting! So I found that it randomly stopped working because I had deleted the directory. When the directory exists Path.DirectorySeparatorChar works fine. When it doesn't, a forward slash is required. Wei...
by allocate
Tue Jun 02, 2020 11:29 pm
Forum: General Discussion
Topic: DirectoryNotFoundException: Could not find a part of the path
Replies: 2
Views: 1006

DirectoryNotFoundException: Could not find a part of the path

I'm sure I did something stupid to make this happen because it was working fine up to this point. Line that causes the problem: ES3.Save("screen", screen, sceneName + Path.DirectorySeparatorChar + "screen.json"); The error it produces: DirectoryNotFoundException: Could not find a...