O'Reilly logo

Unity Game Development Blueprints by John P. Doran

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating health bars

One of the advantages that the new UI system has over the previous one is the fact that you can place UI elements in either 2D or 3D as an overlay to the screen, just as we did before or as part of the game world itself. With that in mind, I thought a good first thing to implement would be health bars above our enemy's heads from our shooter project that we worked on in Chapter 4, First Person Shooter Part 1 – Creating Exterior Environments, Chapter 5, First Person Shooter Part 2 – Creating Interior Environments, and Chapter 6, First Person Shooter Part 3 – Implementing Gameplay and AI. We perform the following steps:

  1. We are going to first open our first person shooter project we created back in Chapter 4, First Person Shooter ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required