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.

--

--

--

A Software Engineer passionate about game dev and interactive products with Unity. I consider video games to be the artistic expression of programming.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Digital 2.0 — Streaming IDE

The Unavoidable Command Line

Implementing DevOps and CI/CD Pipelines to Detection Engineering

Code Smell 130 — AddressImpl

IOT -Embedded Systems Processors

2 Weeks @ Coder Academy Brisbane

How to Install Heroku CLI in Windows PC?

POE Bonus Distribution

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
Rusben Guzman

Rusben Guzman

A Software Engineer passionate about game dev and interactive products with Unity. I consider video games to be the artistic expression of programming.

More from Medium

How to Build and Test your Unity Game!

Why are Screen Space Reflections Unique?

2D Mobile Game: Enemy Attack

High-Definition Rendering Pipeline in Unity