Skip to Main Content






Unity tutorial

Main Menu

Click on File > New Scene

Click on File > Save As > save it in the scenes folder as "Main Menu"

Right-click on the Hierarchy window > UI > Canvas

Right-click on the Canvas > UI > Panel, name it "Background", in the Inspector window:

  • From the "Space Background > Sprites > Background" folder, drag "Space Background 1" to image placeholder in Background
  • Under Image, click Color and change the Alpha value to 255
  • Under Rect Transform, change the Scale Y to 2

Confirm that the background covers the screen by clicking on the Game tab

 

Right-click on Canvas > Button - TextMeshPro

Right click the "Button" > Rename > PlayButton, in the Inspector window:

  • Under Rect Transform, change PosX to 0, PosY to 200, Width to 200, Height to 70.
  • Under Image, click on Color, change it to black
  • Under Button, change the Alpha level of Normal Color to 0, Highlighted Color to 120, Pressed Color to 200, Selected Color to 0, Disabled Color to 0.

Click on its dropdown > click on Text (TMP), in the Inspector window:

  • Change the text to "PLAY"
  • Change the font size to 60
  • Change the Vertex Color to white
  • Check the Bold button in the Font Style
  • Check Color Gradient box, from the Gradient folder, drag the "Yellow-Gold" color gradient into the placeholder
  • Check the Underlay box at the bottom
    • Click on "Click to expand" and change the Offset X to 1, Offset Y to -1, Softness to 0.6

 

Right-click on the "PlayButton" > Duplicate

Rename it to "QuitButton", in the Inspector window:

  • Under Rect Transform, change PosY to 50

Click on its dropdown > click on Text (TMP), in the Inspector window:

  • Change the text to "QUIT"