-
Couldn't load subscription status.
- Fork 0
AttributeVariable
Implements: ScriptableObject > SavableVariable > SharedVariable, ISerializationCallbackReceiver
Scriptable Object for storing a character attribute. like HP. Includes an Unavailable amount. ie: sickness reducing max health.
- type param: <float> generic cast as float
The default max value
The default unavailable value
The run time max value
The run time unavailable
The percent of the run time range between 0 and run time max the run time value is at.
SharedVariable Properties
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