How to create Health Bar in Unity

Опубликовано: 05 Октябрь 2024
на канале: PitiIT
4,696
115

In this unity tutorial we will add a health bar on top of the health system we created in previous video. We'll learn how to use Rect Mask 2d. We'll add the health bar to simple top-down 'rpg like' project but the method and systems will work exactly the same for any 2d or 3d project. I hope you enjoy it!

If you would like to show me some support:
  / pitiit  

If you are looking for a great community:
  / discord  


Masking tutorial I mention in the video:
   • Mask in Unity UI like a PRO! (+soft m...  
Coco Code Channel (really worth checking out!):
   / cococode  

#unity #healthBar #rpg

00:00 What we will build
00:10 Preparing health bar tip
00:30 Setup #1
01:06 Anchor & Pivot Recap
01:35 Setup #2
03:49 Script
05:32 Setup #3