Split screens across Unity scenes
Keep menus and gameplay in separate Unity scenes.
By default, all your screens go into one Unity scene. Bigger games often keep the menus in one scene and the gameplay in another. Rigonix can split your screens the same way.
Add a scene
- Click Scenes at the bottom of the editor, next to Templates.
- Type a name, for example Game, and click Add scene.
- Move screens into it. For example: Main Menu, Settings and Shop stay in Main, while Game HUD, Level Complete and Game Over go to Game.
You can also choose a screen's scene in its Screen settings, under Unity scene.
What happens in Unity
- Importing builds each scene's screens into that scene.
- When a button navigates to a screen in another scene, Unity loads that scene for you.
- Variables (coins, settings…) carry over between scenes.
When to use scenes
- Your gameplay is in its own scene, and the HUD should load with it.
- You want a light menu scene that starts fast.
For small games, one scene is perfectly fine. You can split later without redesigning anything.