Game Development Reference
In-Depth Information
What does it do?
In this project, we will apply the custom GUI graphics to Unity by using GUI Skin. We can
have muliple styles of our GUI graphics in Unity. Let's say that we have muliple types of
fonts that we want to use in our menu; Unity has a way to do this. We can create a GUI Skin
and apply our custom skin to the area that we want to show the font in. That is the great
thing about Unity.
Now, we want to create a menu scriping class that will bring up a new menu window in the
game scene when the player presses M . Next, we create a script to make three tab butons,
which will take the player to each tab, STATUS , INVENTORY , and EQUIPMENT .
In the STATUS tab, we will create a script that will show the image of our character, hit
points, magic points, skill, and all the atributes of this character. Next, we will create an
INVENTORY tab, which will contain all the items that the player can scroll up and down to
choose an item. Finally, we will create the tab that the player can use to manage and change
the equipment and skills of the character by clicking it.
Next, we will create a menu game object and apply the script to this game object. Lastly, we
will add the parameter and textures to our menu and start playing.
Why Is It Awesome?
When we complete this chapter, we will be able to create our custom UI for our RPG game,
not only RPG, but we will also be able to create the user interface for every genre. Also, we
will get a good understanding of the GUI class in Unity, which is very powerful, if we want to
create an awesome user interface such as with Dragon Age, Final Fantasy, and so on.
Your Hotshot Objectives
Since we are creaing a menu for an RPG style game, we need a menu that is a litle
more complex than the usual menu. So, it will be split into five tasks. Here is the outline
of the tasks:
F Custom skin with GUI Skin
F Creaing a menu object
F Creaing a status tab
F Creaing an inventory tab
F Creaing an equipment tab
 
Search WWH ::




Custom Search