Code-free using Auto Save
For information on saving and loading GameObjects without code, please see the Auto Save guide.
Saving and loading GameObjects
Your scene must have an Easy Save 3 Manager to save and load GameObjects. To add this to your scene, go to Assets > Easy Save 3 > Add Manager to Scene.
Once you have done this, GameObjects can be saved and loaded like any other object:
// Save a GameObject.
// Load a GameObject, automatically assigning it to an existing
// GameObject if one exists, or create a new GameObject if not.
// Or we can choose what GameObject we load the data into.
This will save and load the following:
- layer, tag, name and hideFlags.
- Components on the Natively-supported types list, or those which have been manually supported using an ES3Type.
- All of the above for every child of the GameObject.
If there are multiple of the same Component on a GameObject, only one will be loaded.
Saving and loading prefab instances
To save and load a prefab instance: