Health Bar

How to make a health bar!

This page is unfinished, but made accessible because there may be useful content or links in the Notes section.

Health bars
A range of health bar sliders we will be creating in Unity

Outline

Health bars in Unity can be creating using a UI Slider component. You can use this in a 2D or 3D user interface, or have it “in world” above a character’s head.

It needs to be linked to our Health script in order to change its value.

Notes

  • This UI system only exists in Unity 4.6 and higher