Easy save and Playerprefs

Discussion and help for Easy Save 3
Post Reply
hrohibil
Posts: 10
Joined: Thu Aug 19, 2021 5:46 am

Easy save and Playerprefs

Post 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
hrohibil
Posts: 10
Joined: Thu Aug 19, 2021 5:46 am

Re: Easy save and Playerprefs

Post by hrohibil »

No one??
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Easy save and Playerprefs

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
hrohibil
Posts: 10
Joined: Thu Aug 19, 2021 5:46 am

Re: Easy save and Playerprefs

Post by hrohibil »

Sounds valid to me.

Thanks Joel as always...

Cheers
Post Reply