Game Development Reference
In-Depth Information
Mission accomplished
In this project, we just created a nice menu, which has the features for an RPG menu. This
menu can move around the screen, and we can change the equipment of the character, too.
We used a
GUI
class,
GUISkin
, and the
OnGUI
function to create this menu. In the
GUI
class, we used
GUI.window
to create our main menu,
GUI.box
to create the background
box area,
GUI.DrawTexture
to show our character's graphics,
GUI.Button
to create
a button,
GUI.ToolBar
to create a tab button,
GUI.SelectionGrid
to create a list of
clickable items,
GUI.BeginScrollView
and
GUI.EndScrollView
to create a
scrolling area, and lastly, we used
GUI.Label
to create a text label. We also used
GUIContent
to contain the information of our button or label. Let's take a look at what
we learned from this project from the following screenshot: