Addictive Scene UI and Games

Additive scenes are great… I break all my games up and the UI always goes in a separate scene.

HOWEVER… now you must also abstract all inter-scene communications so they can be hooked up without dragging. Dragging is always the best way to hook stuff up in Unity, but you can’t drag across from one scene to another.

I use my Datasacks package to drive and handle UI that does not need any dragging into other parts of my games.

Another way is a simple centralized “GameManager” type of construct that all the different scenes access to learn about each other.

Here’s more reading:

Additive scene loading is one possible solution:

A multi-scene loader thingy:

My typical Scene Loader:

Other notes on additive scene loading:

Timing of scene loading:

Also, if something exists only once in one scene, DO NOT MAKE A PREFAB out of it. It’s a waste of time and needlessly splits your work between two files, the prefab and the scene, leading to many possible errors and edge cases.

Two similar examples of checking if everything is ready to go: