Creating UI Main Menu in Unity

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.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store