Creating a Main Menu
Now that we have some game play, let's add in a little more organization by adding a main menu. This will make use of Unity's uGUI system. (Unity also has the legacy immediate-mode GUI, as well as the new UIElements system.) Our GUI will have a little bit of life with some animation and sound:
- Unity itself gives us a great free starting package. Go to the Asset Store and download and import the UI Samples package by Unity Technologies.
- To see what we are dealing with, find the scene at Unity UI Samples | Scenes | Menu 3D and run it. We will modify it for our purposes.
- Duplicate the scene and rename it to SE MainMenu. Store the duplicate in your project's
Scenes
folder (not UI Samples | Scenes). - Select the tab for your Game view. There is a drop-down menu at the top of the Game view that allows you to set the screen dimensions for game play. Select the 16:9 Aspect choice. There is nothing magical about these dimensions. You might...