Game Development Reference
In-Depth Information
The last tab is the EQUIPMENT tab with which the user will be able to change the weapon,
armor, accessory, and skill, as shown in the following screenshot:
The purpose of this chapter is to understand the GUI class in Unity and create our custom
user interface, which is different from GUITexture that we used to create our restart
buton in the irst chapter. There is also GUIText , which we will use to display the text of
any font we import in the screen coordinate. Both are the type of rendering component that
can be used once per object. So, if we try to create a complete menu, we will need many
GUITexture / GUIText objects and the scripts to handle them. On the other hand, GUI class
is operaing inside one funcion OnGUI , and we only deal with one object and only create a
script that will display all butons in the menu tab.
 
Search WWH ::




Custom Search