This repository was archived by the owner on May 29, 2023. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork 0
SharedVariable
sophia daniels edited this page Oct 3, 2018 · 5 revisions
Implements: ScriptableObject > SavableVariable, ISerializationCallbackReceiver
Base abstract generic class for Scriptable Object variables. Extend this class to create new Savable Shared Variables.
- type param: <T> Type of value for the variable
The default value for the variable
Run time value for the variable
SavableVariable Properties
Set to true if data has been loaded
ISerializationCallbackReceiver Methods
Applies the default value to the run time value after deserialization.
- This should happen after changing the default values in the inspector. It will also apply the default value when the game starts.
- Required for ISerializationCallbackReceiver
Does nothing
- Required for ISerializationCallbackReceiver
SavableVariable Methods
Clear the saved data
Converts runtime data to a string to be saved
- Returns: String of runtime data
Parses string of data into runtime data
- Param: data - Data to be loaded
Home | SharedVariableSaveSystem
Extensions | ColorPalletSystem | InventoryItemsSystem | SoundProfileCaptions