Table of Contents

PlayerDataBehaviour Class

public class PlayerDataBehaviour : MonoBehaviour, ISaveable
Inheritance
PlayerDataBehaviour
Implements

Fields

_uniqueID
playerData

Properties

IsDirty

Save System Would Only save files that are Dirty in short has changes to submit

Methods

AssignSerializedData(string)

Implement how your component will adjust on data load

GetSerializedData()

Return a serialized string for the save system to save

GetUniqueID()

Must Return an Unique ID for save system to save file with this name

ManageSaveLoadException(Exception)

This should never happen. If anything comes here, You probably need to check the flow of loading. Override to manage this in edge case scenario. Strongly discouraged.