Game Development Reference
In-Depth Information
Game over-Wrapping it up
In this chapter, we just created a nice menu, which has the feature for an RPG game menu.
This menu can move around the screen, and we can change the equipment of the character,
too. We used a
GUI
class,
GUI Skin
, and
OnGUI
funcion 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 graphics,
GUI.Button
to create a buton,
GUI.ToolBar
to create a tab buton,
GUI.SelectionGrid
to create a list of clickable
items,
GUI.BeginScrollView
, and
GUI.EndScrollView
to create a scrolling area, and
last we also used
GUI.Label
to create a text label. We also used
GUIContent
to contain the
informaion of our buton or label. Let's take a look at what we learned from this chapter: