Modifying Player Prefs Saved Data

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
KakimaAkuma
Posts: 29
Joined: Mon Sep 09, 2019 9:51 pm

Modifying Player Prefs Saved Data

Post 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.
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Modifying Player Prefs Saved Data

Post 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.
Post Reply