Page 1 of 1

Scene independent save of Scriptable Objects

Posted: Thu May 06, 2021 12:09 pm
by Giezi
I have a question about saving scriptable objects using ES3.

I have a couple of scriptable objects I would like to save (and later load), and the references to these scriptable objects are in another scriptable object, so not in the scene. I would like to make the saving and loading scene independent, is there any way to achieve this without having a Easy Save 3 Manager in the scene? I know I could have the manager don't destroy on load, but I don't really see the point of having it in the scene if no object I'm trying to save and load is in the scene in the first place.

I'm probably missing how the asset works, sorry for the naive question.

Re: Scene independent save of Scriptable Objects

Posted: Thu May 06, 2021 12:16 pm
by Joel
Hi there,

The manager is there to enable saving and loading of reference types (regardless of whether the reference exists inside or outside of the scene). If you didn't want the manager in your scene, you would need to save each of the individual primitive values which make up your ScriptableObjects, rather than saving the ScriptableObject as a single object.

All the best,
Joel

Re: Scene independent save of Scriptable Objects

Posted: Thu May 06, 2021 12:26 pm
by Giezi
Hei

That makes sense, thanks a lot for the fast answer! Guess I will use a Scene Object then :)

Best
Giezi