Hi,
I’m currently having an issue with my scriptable objects which store data, however not all scenes should be referencing this data, but on returning to the original scene, I would expect the data to be still stored in the scriptable object, which is not the case currently.
For example:
I’m storing an string based ID on a StringVariable object which derives from ScriptableObject, this ID’s input comes from the user in the login scene. After going to another scene which doesn’t need to know about the ID, and thus doesn’t have a reference to it, I’m going to back to a scene (could be the login again) which does need the ID. At this moment the ScriptableObject has lost it’s data and is reset to the default value.
This all does work if the next scene is also referencing the same object. Is there an easy fix for this, or should I just put those variable on a general PersistantData object and keep that one in all my scenes?