Creating UI Main Menu in Unity
First screen the user sees when opening the game
Objective: Create a main menu screen using UI elements
First step is to create a new scene. In this case I’m gonna call it main menu, then we’re gonna add the space background.
Now we can start adding UI elements like images and Texts for the titles and other information.
Once we are happy with the result we gonna create a UI button to start the game, then create a script and create a function to load the game scene.
Finally we only have to select the button and call the function in the property OnClick of the button component.
And that’s it! A functional main menu with a button to start the game.