Page 1 of 1

loadrawstring

Posted: Sun Feb 28, 2021 11:24 am
by fahrulmr
hi,

i have some issue on loadrawstring
so i succesfull to save data but i want to load this data(from datapersistentpath) to 3D object

my goal is use easy save to load this coordinat and 3D cube moving rotate follow json file

i use ES3.loadrawstring but still error to load directly
am I wrong to use loadrawstring? or should I use LoadInto?

Re: loadrawstring

Posted: Sun Feb 28, 2021 11:32 am
by Joel
Hi there,

Please could you show me the code you're using and any errors you're getting?

Note that LoadRawString just loads the data from the file as a string. Because the data is in your own JSON format, it would be up to you to parse this JSON data and apply it to your objects.

All the best,
Joel

Re: loadrawstring

Posted: Sun Feb 28, 2021 12:58 pm
by fahrulmr
"LoadRawString just loads the data from the file as a string"

what do you mean this?? i dont understand

can you show me how to use loadrawstring
with empty scene, i dont find any video tutorial

Re: loadrawstring

Posted: Sun Feb 28, 2021 1:06 pm
by Joel
Hi there,

LoadRawString loads the data within the file as a string. So in your case the result of LoadRawString will return your entire JSON data as a string. It will not parse that JSON data.

As the JSON data is in your own format you would need to parse this yourself.

You can find more information in the Raw Strings guide:
https://docs.moodkie.com/easy-save-3/es ... ytes-file/

All the best,
Joel