Search found 5 matches

by jwiden
Mon May 11, 2020 7:18 am
Forum: General Discussion
Topic: ES3File: Couldn't find the file on Android device.
Replies: 8
Views: 4219

Re: ES3File: Couldn't find the file on Android device.

Joel wrote:
Joel
Hi Joel,
How to save a file in run time. i created it in resource folder?
Thanks.
by jwiden
Fri Apr 10, 2020 8:37 am
Forum: General Discussion
Topic: ES3File: Couldn't find the file on Android device.
Replies: 8
Views: 4219

Re: ES3File: Couldn't find the file on Android device.

Joel wrote:Hi there,
All the best,
Joel
Hi Joel,

Now, I want to load a file from is SerializeField in the inspector. How does it?
Loading a file from a resource path seems to take quite a while.
I think it would be faster to load it from an inspector or scriptableobject.

Thanks for considering my request.
by jwiden
Mon Nov 04, 2019 3:42 pm
Forum: General Discussion
Topic: ES3File: Couldn't find the file on Android device.
Replies: 8
Views: 4219

Re: ES3File: Couldn't find the file on Android device.

Joel wrote:Hi there,

If you want to include a file in the built player, you should use a Resources folder:
https://docs.moodkie.com/easy-save-3/es ... resources/

All the best,
Joel
It works, thank you very much. ;) ;) ;)
by jwiden
Mon Nov 04, 2019 2:18 pm
Forum: General Discussion
Topic: ES3File: Couldn't find the file on Android device.
Replies: 8
Views: 4219

Re: ES3File: Couldn't find the file on Android device.

Hi there, Steaming Assets Path is not writable at runtime on Android (see https://docs.unity3d.com/Manual/StreamingAssets.html). You should use Application.persistentDataPath instead, which Easy Save uses by default if you only specify a filename or relative path. All the best, Joel I have a file t...
by jwiden
Mon Nov 04, 2019 4:30 am
Forum: General Discussion
Topic: ES3File: Couldn't find the file on Android device.
Replies: 8
Views: 4219

ES3File: Couldn't find the file on Android device.

I cannot find my file saved in the Asset from an Android device. It works well in the editor. My code: var path = Application.streamingAssetsPath + "/FilePos"; filePos = new ES3File(path); if (!filePos.KeyExists(_KeyDataGame.keySaveFilePos)) { print("coultn't find the file"); }