Cross-scene references
Posted: Mon Apr 12, 2021 10:17 am
Hello.
Well, this hit me hard on realization and took longer than I wish for. This is not an intention to blame but would like to understand the concept idea and how to possibly solve it.
Scenarion:
SceneA and SceneB has their Reference Managers attached and afaik it loads the references per scene. Meaning if I have refId or rA on sceneA I cannot get the same refId on SceneB? Tried it out with saving the value on SceneA and then on SceneB tried to find by that same ID and indeed it does return null.
Question:
How do I approach reference saving in cross scenes?
The main idea behind it is that I want to attach/detach certain "consumable" that is a reference to scriptable object in SceneB but also show it in SceneA that I have it.
Well, this hit me hard on realization and took longer than I wish for. This is not an intention to blame but would like to understand the concept idea and how to possibly solve it.
Scenarion:
SceneA and SceneB has their Reference Managers attached and afaik it loads the references per scene. Meaning if I have refId or rA on sceneA I cannot get the same refId on SceneB? Tried it out with saving the value on SceneA and then on SceneB tried to find by that same ID and indeed it does return null.
Question:
How do I approach reference saving in cross scenes?
The main idea behind it is that I want to attach/detach certain "consumable" that is a reference to scriptable object in SceneB but also show it in SceneA that I have it.