Keep losing my saves in Player Prefs
Posted: Tue Nov 29, 2022 4:59 pm
Hi there! I have many users of my app and sometimes they complain about losing app's settings state. I use ES3 with Player Prefs, AES enc, no compression. I use ES only for saving strings like "theme" -> "dark". Nothing more.
I just create ES3File with ES3Settings
and then
and
In this article stated that Plaer Prefs "can be deleted by accident since they’re saved outside of the project and managed by your OS".
What do you recommend for better data integrity?
I just create ES3File with ES3Settings
Code: Select all
_userES3Settings = new ES3Settings(ES3.EncryptionType.AES, ES3_ENCRYPTION_PASSWORD)
{
location = ES3.Location.PlayerPrefs
}
es3DefaultFile = new ES3File(UserES3Settings);
Code: Select all
es3DefaultFile.Save<T>(settingName, value);
Code: Select all
es3DefaultFile.Sync(UserES3Settings);
What do you recommend for better data integrity?