Adding a Heads-Up Display

In the last chapter, we configured our non-player character, the Cucumber Beetle, and reviewed its 11 animations. We significantly reconfigured the non-player character's animation controller. We also planned and wrote scripts to control the non-player character's in-game behaviors, which included patrolling, cucumber consumption, fighting on the ground, and fighting on hind legs. In addition, we added cucumber patches, cucumbers, and cherries to our game world.

In this chapter, we will design, develop, and incorporate a Heads-Up Display (HUD) in our game. We will use a canvas to create text and graphics that provide visual indicators of points, health, and additional information to help the player maintain situational ...

Get Getting Started with Unity 2018 - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.