Unity UI: Main Menu and Loading Scenes

Damian Dąbrowski
2 min readJul 5, 2021

Every game or application needs some sort of start screen in the form of a main menu, where you can launch or exit the application. In Unity to create a menu we first create a new scene, this will be our first scene. In build settings tab, we can manage scenes and change their order.

In the next step, we will add a UI image and a button. For the button we need to configure a click event, create a script and a method to load the game scene.

To set up the on click event, we need to add a Canva object and the LoadGame() method of the Menu class.

Why do you have to load scenes in Unity? One reason may be the ability to restart the game. Another is to load the first level when you click the start button to start the game. To learn more about the UI in Unity, take a look at the documentation:

https://docs.unity3d.com/Manual/UIToolkits.html

--

--

Damian Dąbrowski

Hi, I’m Damian, a Software Engineer who loves building educational apps and simulations..