Assigning object references across several scenes with DontDestroyOnLoad

Please use code tags: Using code tags properly

That said, can you put all the stuff that needs to live from scene to scene in a separate scene, load that scene once, then additively load and unload all the other scenes?

Breaking apart your scene into logical subscenes is EXTREMELY powerful in Unity. For instance, one scene for the UI, which may never go away. Another scene for the Inventory, which must come up, then go away. Another scene for all game managers, which stay for the duration of the game, etc. Or maybe your UI scene goes away and becomes the combat UI scene during combat, then back to the “explore UI” for instance. Check out the scene management stuff because once you start chopping your game into sub-scenes, you’ll kinda wonder how you ever didn’t do it before. :slight_smile:

1 Like