Page 1 of 1

Easy save and Playerprefs

Posted: Thu Aug 19, 2021 11:04 am
by hrohibil
Hello

I have successfully setup ES3 so that I can save and load values such as cashAmount, player position, health etc.

Now I tried to add the score and life’s in as well, but nothing changed.

Then I thought it must be related to that those two values are also setup with playerprefs so it remembers the score between life’s .

Is it not possible for es3 to overwrite playerprefs when loading?

Hope it makes sense.
Cheers

Re: Easy save and Playerprefs

Posted: Fri Aug 20, 2021 6:35 pm
by hrohibil
No one??

Re: Easy save and Playerprefs

Posted: Sat Aug 21, 2021 8:55 am
by Joel
Hi there,

If you’re saving using both Easy Save and PlayerPrefs, you will need to ensure that Easy Save loads after PlayerPrefs, otherwise your PlayerPrefs data will load over the Easy Save data. However, I strongly recommend you use one of the other, not both, otherwise you can get unexpected behaviour as you’ve described.

All the best,
Joel

Re: Easy save and Playerprefs

Posted: Sat Aug 21, 2021 9:01 am
by hrohibil
Sounds valid to me.

Thanks Joel as always...

Cheers