Saving/Loading Achievement/Stat Data

When saving, the files will save in the following location: Assets -> TrackerPro -> Resources -> JSON

In the settings file auto-save is turned on by default and will save when a value updates with the exception of TimeSpan stats which save every 10 seconds for optimization purposes.

Saving Achievements/Stats

To manually save achievements you can call the following:

AchievementMaster.SaveAchievementFile(AchievementMaster.achievementMaster);

To manually save stats you can call the following:

StatMaster.SaveStats(StatMaster.statMaster);

Loading Achievements/Stats

Achievements/Stats will load OnEnable by default so you should not need to load it yourself but if you wish to:

To manually load Achievements you can call the following:

AchievementMaster.LoadAchievementFile();

To manually load Stats you can call the following:

StatMaster.LoadStats();

Last updated