hippogamesunity / HeroEditor4DHub

10 stars 0 forks source link

Saving Prefab or JSON outside of default directory causes DirectoryNotFoundException #16

Closed collierscott closed 4 years ago

collierscott commented 4 years ago

When trying to save Prefab or JSON, I get the following error:

DirectoryNotFoundException: Could not find a part of the path "C:\Users\scoll\OneDrive\GameDevelopment\Games\Unity\HippoCharacters\AssetsC:\Users\scoll\OneDrive\GameDevelopment\GameSprites\GenericHero.json".
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.

I can save if I use Assets\HeroEditor4D\FantasyHeroes\Prefabs.

This is same for both Cahracter Editors (FH and Goblins). ANd, I am running in Unity.

Thanks

hippogamesunity commented 4 years ago

Hi! You should refer to Save method to learn what correct path can be used. image

hippogamesunity commented 4 years ago

As you see you can't manage save process to save outside of project folder.