In this short video you will get to understand how you can create a health bar using Unity’s built-in UI|Image components, and by changing their size and color through scripting
We will look at:
- Creating an Image|UI element.
- Using this component to represent the healh
- Changing the size and color of teh component (health bar) based on the health