Game Development Reference
In-Depth Information
The purpose of this project 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 Re-
startButton in Project 1 , Develop a Sprite and Platform Game . There is also GUIText ,
which is used to display the text of any font that we import in the screen coordinate. Both
are types of rendering components 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, the GUI class is operating inside one function OnGUI ,
and we only deal with one object and only create a script that will display all buttons in
the Menu tab.
Search WWH ::




Custom Search