Hi Tony
My project use Save Game Pro and i done my save system.
I only want to get all data to save related to Quest Machine. There is a method to get that? or what is the info i need to saved?
Thank Tony
Save Data
Re: Save Data
Hi,
Set up Quest Machine's save system components: Add SaveSystem, JsonDataSerializer, and PlayerPrefsSavedGameDataStorer to the Quest Machine GameObject. The PlayerPrefsSavedGameDataStorer won't be used; it just silences a warning about no saved game data storer.
To get Quest Machine's data as a string:
Then you can save that string using Save Game Pro.
To reapply a string to Quest Machine:
Set up Quest Machine's save system components: Add SaveSystem, JsonDataSerializer, and PlayerPrefsSavedGameDataStorer to the Quest Machine GameObject. The PlayerPrefsSavedGameDataStorer won't be used; it just silences a warning about no saved game data storer.
To get Quest Machine's data as a string:
Code: Select all
using PixelCrushers;
...
string s = SaveSystem.Serialize(SaveSystem.RecordSavedGameData());
To reapply a string to Quest Machine:
Code: Select all
SaveSystem.ApplySavedGameData(SaveSystem.Deserialize<SavedGameData>(s));