Scene independent save of Scriptable Objects

Discussion and help for Easy Save 3
Post Reply
Giezi
Posts: 8
Joined: Thu May 06, 2021 10:54 am

Scene independent save of Scriptable Objects

Post 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.
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Scene independent save of Scriptable Objects

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Giezi
Posts: 8
Joined: Thu May 06, 2021 10:54 am

Re: Scene independent save of Scriptable Objects

Post by Giezi »

Hei

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

Best
Giezi
Post Reply