Continuing from the first step, we will now create our menu game object in the scene, with which we will be able to open and close the menu window. Pressing the M key will open the menu window, and clicking on the close button in the window will close the menu window. We will also create three tab buttons for the player to be able to see through the different pages, STATUS, INVENTORY, and EQUIPMENT, as we can see in the following screenshot:
Just make sure that we have our
Player.png texture in the
Chapter2/images folder. Now, we are ready.
We will begin by creating the menu: