.Net Programming

Explore the .Net with the latest in C# from basic to advanced, including .Net versions 9, 8, 6, 5, Core 3.1, .Net Framework, ASP.NET Core, MVC, design patterns, OOPS, and SOLID principles. Get top tutorials, best practices, and hands-on code examples on GitHub.

Follow publication

Making a RTS game #42: Designing our main menu 1/2 (Unity/C#)

Let’s keep working on our RTS and add a main menu scene!

Mina Pêcheux
.Net Programming
Published in
10 min readDec 23, 2021

⬅️ Tutorial #41: Preparing for a main menu… | TOC | Tutorial #43: Designing our main menu 2/2 ➡️

📕 Get the ebook and bonus material on Gumroad!
🚀 Find the code of this tutorial series on my Github!

Last week, we worked on the organisation of our project and we worked on our Unity scenes to prepare everything for a main menu, based on a multi-scene workflow.

Today, let’s start designing this main menu! We won’t wrap everything up in just 10 minutes, so we’ll do this in two parts. And to begin with, let’s create some UI to dynamically list the available maps and show up some details. Then, after the Christmas break, we’ll finish this by connecting the menu and the game scene and propagating all the necessary data!

Making a simple menu scene

The main menu will live in its own scene: the “MainMenu” Unity scene. This scene will mostly contain UI elements, but I’m also a real fan of the original Warcraft 3 menu (no, I won’t talk about the “reforged” edition… that rant would be too long!), so I’ll take this opportunity to have some 3D elements on the side too, as decor ;)

Note: in this tutorial, you can directly open this scene in the Unity editor and run it as standalone, without the rest of the multi-scene workflow. We’ll see next time how to integrate it in the rest of the project!

Here’s for example a basic screenshot of my menu scene:

Of course, you can create our own 3D decor and import your own 3D meshes, and you can also place the UI elements as you wish. And if you really have some time left on your hands, you can even think of animating some element somewhere (like, in my case, adding a flag to the tower or a fire in front of it for example)… ;)

The important thing for the rest of this tutorial is that my UI canvas contains:

  • the buttons that are visible…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

.Net Programming
.Net Programming

Published in .Net Programming

Explore the .Net with the latest in C# from basic to advanced, including .Net versions 9, 8, 6, 5, Core 3.1, .Net Framework, ASP.NET Core, MVC, design patterns, OOPS, and SOLID principles. Get top tutorials, best practices, and hands-on code examples on GitHub.

Mina Pêcheux
Mina Pêcheux

Written by Mina Pêcheux

I’m a freelance full-stack web & game developer. I’m passionate about topics like CGI, music, data science and more! Find me at: https://minapecheux.com :)

No responses yet

Write a response