Skip to main content

Introduction

This component manages saving and loading

"Save System"

Fields#

NameDescription
PersistMark this object as DontDestroyOnLoad
FilenamePersistentData filename to use when no other is specified for save/load
Broadcast MessagesBroadcast messages about save/load to GDTK_Save channel
On EnableEvent raised when object is enabled
On StartEvent raised when object starts
On Save StartEvent raised when Save starts
On Save CompleteEvent raised when Save complete

Properties#

NameDescription
instanceGets current instance of the object
tempDataStores temporary data that is not saved/loaded

Methods#

NameDescription
ClearClears data from all sections
GetBinaryGets binary value for a key on a specific section
GetBoolGets boolean value for a key on a specific section
GetByteGets byte value for a key on a specific section
GetFloatGets float value for a key on a specific section
GetIntGets integer value for a key on a specific section
GetLongGets long value for a key on a specific section
GetObjectGets object value for a key on a specific section
GetQuaternionGets quaternion value for a key on a specific section
GetStringGets string value for a key on a specific section
GetVector2Gets vector2 value for a key on a specific section
GetVector3Gets vector3 value for a key on a specific section
LoadLoad data from default file
LoadSceneLoad a scene
LoadSceneDataLoad existing data into current scene
LoadSectionLoad a section from current file
SaveSave data to default file
SaveSceneDataGet lastest scene data into data, does not save file
SaveSectionSave section to default file
SetBinarySets binary value for a key on a specific section
SetBoolSets boolean value for a key on a specific section
SetByteSets byte value for a key on a specific section
SetFloatSets float value for a key on a specific section
SetIntSets integer value for a key on a specific section
SetLongSets long value for a key on a specific section
SetObjectSets object value for a key on a specific section
SetQuaternionSets quaternion value for a key on a specific section
SetStringSets string value for a key on a specific section
SetVector2Sets vector2 value for a key on a specific section
SetVector3Sets vector3 value for a key on a specific section
UnloadSectionUnload a section from memory
DownloadFileDownload a file to disk
DownloadFileAsyncDownload a file to disk (async)