Next: Scene Object List Serializer, Up: Serialization [Contents][Index]
Object Group Serializer allows you to save/load object children at runtime. All first-level child objects that you want to save must have a prefab in a ’Resources’ folder somewhere in your project, or Unity will throw an error when you try to load them. This can be used to save a customized vehicle or character - if you’ve set up such gameplay already, this component can save it.
bool
autoSaveOnPopulateDo we want to save automatically when we gather a list of objects from the heirarchy? (recommended)
Default value: true
bool
autoClearShould we clear the (local) object list automatically? Only disable this if you want to use additive saves (advanced users)
Default value: true
string
defaultFileNameIf using ’Auto Save On Populate’ this is the file name that will be used
Default value: "default"
Populates the temporary object list by recording all of it’s first-level children. If ’Auto Save On Populate’ is disabled, you need to call Save afterwards
Instantiates the objects that are currently in temporary memory. Call this after Load if ’Auto Instantiate’ is disabled.
Save the current object list from memory to disk. Only needed if ’Auto Save On Populate’ is false. You must call ’Populate’ before this message will work.
Argument: File name we want to save to
Load object children into the local list.
Argument: File name we want to load from
Clears the object list. This is a list stored in temporary memory that you can save to disk with ’Save’ or add objects to with ’PopulateByTag’. ’Load’ fills the list from disk
bool
autoSaveOnPopulateDo we want to save automatically when we gather a list of objects from the heirarchy? (recommended)
Default value: true
bool
autoClearShould we clear the (local) object list automatically? Only disable this if you want to use additive saves (advanced users)
Default value: true
string
defaultFileNameIf using ’Auto Save On Populate’ this is the file name that will be used
Default value: "default"
Populates the temporary object list by recording all of it’s first-level children. If ’Auto Save On Populate’ is disabled, you need to call Save afterwards
Instantiates the objects that are currently in temporary memory. Call this after Load if ’Auto Instantiate’ is disabled.
Save the current object list from memory to disk. Only needed if ’Auto Save On Populate’ is false. You must call ’Populate’ before this message will work.
Argument: File name we want to save to
Load object children into the local list.
Argument: File name we want to load from
Clears the object list. This is a list stored in temporary memory that you can save to disk with ’Save’ or add objects to with ’PopulateByTag’. ’Load’ fills the list from disk
Next: Scene Object List Serializer, Up: Serialization [Contents][Index]