Until now I have focused only on the creation of the game scene, today I have focused on the creation of the main menu.

As already happened for the other games made during the course the procedure is very simple, we are talking about a scene where we use only UI elements, and starting from the background image we are going to build the single elements.

The button elements of Unity work automatically in the mobile version so there is no need to worry about it.

Essential as always in the code add the namespace SceneManagement to access the methods related to the loading of the scene.

Finally, we need to create the methods to load the scene and exit the game. When you use the method to load the scenes you must always check in the “Build Settings” that the scene is inserted so you can call it in the code with its full name or with the associated reference number.

project manager by day, unity developer by night