Book Image

Getting Started with Unity 5

By : Dr. Edward Lavieri
Book Image

Getting Started with Unity 5

By: Dr. Edward Lavieri

Overview of this book

Table of Contents (15 chapters)

HUD


A game's HUD is graphical and textual information available to the user at all times. No action should be required of the user, other than to look at a specific region of the screen to read the displays. For example, if you are playing a car-racing game, you might have an odometer, speedometer, compass, fuel tank level, air pressure, and other visual indicators always present on the screen.

Our game will have these on-screen elements:

  • The number of units of corn Colt currently has

  • The number of units of corn Colt has gathered in total

  • The number of units of water Colt currently has

  • The number of units of water Colt has gathered in total

  • The number of piglets, pigs, and blue ribbon pigs currently on the farm

  • The number of chicks, chickens, and blue ribbon chickens currently on the farm

Creating an HUD

The following are the steps to create our game's HUD:

  1. Open the game project and load the scene.

  2. Navigate and select the GameObject | UI | Text option from the drop-down menu. This will result in a...