How to make a Health Bar in Unity

Опубликовано: 17 Апрель 2026
на канале: Obsessive Games
3,814
46

In this game development video tutorial, I show fellow Unity Developers and aspiring or beginner Game Developers how to create your own simple health bar in Unity and make it adjustable.

You will learn how to position and anchor with UI canvas, deplete and fill health based on damage received, and how to apply the textures in Unity. Keep adjusting the health bar variables and game objects until your user experience is where you want it to be.

If my video has helped you in any way, please show your support on Patreon so that I can keep doing what I love!

💖 Support my videos on Patreon ►   / obsessivegames  

0:00 Introduction
0:47 Create your canvas and health bar game object
1:42 Anchor and position
2:02 Create your asset and import it to Unity
02:49 Finetune the asset in Unity
03:58 Code for health bar script
06:12 Testing the health bar

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
🙋 LINKS TO CHECK OUT 💗

● Textures ► https://www.mediafire.com/folder/mtxc...
● Healthbar.cs ► https://pastebin.com/Dzv3tGwR
● If you need any assets and would like to see what the Unity asset store has to offer, then head right to the Unity store here ► https://bit.ly/39bxPvy

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
✨Connect on more platforms ✨

📷 Instagram ►   / obsessive_games  
🐦 Twitter ►   / gamesobsessive  
🥶 Facebook ►   / obsessivegames  
💬 Discord ►   / discord  
💨 Wishlist ► https://bit.ly/3kvM7Jn

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
AFFILIATE PROMOTION
If you want to create your own programming language and want to learn more about programming check out this book ► https://bit.ly/2YhyQfR

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Welcome to Obsessive Games!

On this channel, I show you how to create games and show you tips and tricks with Unity.
The current indie game in progress is an Action Role-Playing game called Guild Hall Adventures, I will show you what unity game development methods I use to complete games with Unity 3D.

Consider subscribing for game development tutorials and devlog videos with everything GameDev related, and create your own indie games with the help I provide.

👍 Like and Subscribe! 💖
♥ Subscribe - https://bit.ly/2WkqqE4

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

How to make a Health Bar in Unity
#Unity #gamedevelopment #gamedev #obsessivegames #indiegames #Unity3d #lowpoly #unitygamedev #unitygamedevelopment #Beginner #Healthbar #unitytutorial #programming #programminglanguage #unityhealthhbar #GIMP