Saving and loading references

When you save a class or script, by default Easy Save will store it’s fields by reference if they inherit from UnityEngine.Object.

To do this, Easy Save has a reference manager which stores IDs for the references in your scene.

When you save a scene or enter play mode, Easy Save will automatically add the following references to the reference manager:

  • All GameObjects and Components in your scene
  • All UnityEngine.Object references stored in your Components
  • All prefabs which are referenced by your scene and have an ES3Prefab Component attached

To add an asset to the reference manager, right-click it and press Add Reference to Manager.

Sometimes the reference manager will keep references to things which are no longer used by your scene.

To remove any references from the manager which are not directly referenced by your scene, press the Optimize button on the ES3 Reference Mgr component of the Easy Save 3 Manager in your scene.