Page 1 of 1

Modifying Player Prefs Saved Data

Posted: Mon Dec 02, 2019 12:47 am
by KakimaAkuma
We have save system added along with Player Prefs Saved Game Data Storer.
Is there a way we could modify it because we're trying to port the local stuff to server sided.

Re: Modifying Player Prefs Saved Data

Posted: Mon Dec 02, 2019 8:45 am
by Tony Li
Hi,

Sure! You don't need to modify PlayerPrefsSavedGameDataStorer. Make a new subclass of SavedGameDataStorer that stores data on your server. It's a simple class. You only need to write 4 methods: HasDataInSlot(), StoreSavedGameData(), RetrieveSavedGameData(), and DeleteSavedGameData().

Then remove PlayerPrefsSavedGameDataStorer from your save system, and add your new subclass instead.