Book Image

Unity Game Development Scripting

By : Kyle D'Aoust
Book Image

Unity Game Development Scripting

By: Kyle D'Aoust

Overview of this book

Table of Contents (17 chapters)
Unity Game Development Scripting
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 2. GUI Time

In video games, the GUI is one of the most important parts of the game. It's where you see how much health you have, what level you are at, how much gold you're carrying, and so on. It's how you gather information on your character and the world you are in.

In this chapter, we'll be covering the following topics:

  • Both 2D and 3D GUI elements

  • How to create GUI buttons

  • How to create a 2D health bar

  • Tracking the player's level by using a GUI label

  • Using two GUI boxes to make an experience bar

  • Creating a 3D health bar

  • Showing 3D damage reports

  • Showing enemy name tags