Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Getting Started with Unity 5

You're reading from  Getting Started with Unity 5

Product type Book
Published in May 2015
Publisher
ISBN-13 9781784398316
Pages 184 pages
Edition 1st Edition
Languages
Author (1):
Dr. Edward Lavieri Dr. Edward Lavieri
Profile icon Dr. Edward Lavieri

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}