How to Create a reusable Resource Bar in Unity 6 💛 For HP, MP, Energy, Progress bars...
Chapters
Learn how to create a Resource Bar in Unity you can easily reuse across projects and use cases! Straight, Circle and Arc Shaped.
We start at having a look at the core basics of a health bar or mana bar and after that, we will expand on the concept by:
- adding some sliding animation
- displaying a value in direct numbers or percentages
- changing colors based on resource availability
- calling an event once the bar is filled up completely
- make it into a circular bar
- add options for an arc form! (or part of a circle)
Plus, a little bit about implementing a good Component Layout in the inspector while doing so - that will make working with the system much more convenient and enjoyable.
Wrapping up, we’ll have a look at how Odin Inspector can improve our component layout even further. You can find the script on my github in case you get lost.
🎆 Github 🎆
https://github.com/Maraakis/ChristinaCreatesGames/tree/main/Resource%20Bar
📖 Chapters 🔖
📁 Get the PDF Version of my tutorials
Would you rather read a book? I have a collection of eBooks on the Unity UGUI System here:
📘 Itch: https://christinacreatesgames.itch.io/
💬 Join the Discord
You are very welcome to join https://discord.gg/8pDT2J2TBX !
🎮 Play My Games
🎲 https://christinacreatesgames.itch.io
🛍️ Recommended Assets
https://assetstore.unity.com/lists/highly-recommended-9071944798250?aid=1101lr4hF [affiliate]
📖 List of books all around Gamedev and Design I recommend: https://www.christinacreatesgames.com/bookshelf
Otherwise, using my affiliate codes for these stores helps to support my channel:
🛒 Unity Asset Store: https://assetstore.unity.com/?aid=1101lr4hF [affiliate]
🏪 Synty Store: https://syntystore.com/christinacreatesgames [affiliate]
🪸 Envato Elements: https://1.envato.market/ChristinaCreatesGames [affiliate]
🟦 Amazon: https://amzn.to/3G8NgFq [affiliate]
🌟 Actionable UI Feedback for Your Game
I offer UI consulting for gamedev projects! With 15+ years of design experience and a background of a teacher, I’m here to help:
👉 Learn more: https://www.vennegerts.com/en/gamedevelopment-consulting/
☕ Support Me on Ko-fi
If you enjoy the content and want to support my work:
💛 Buy me a cocoa: https://ko-fi.com/christinacreatesgames
#unitytutorial #unity3d #gamedev #indiedev
Howto & Style
#Unity resource bar
#Unity tutorial
#Learn Unity
#ChristinaCreatesGames
#Mana bar
#Stamina bar
#resource bar
#Odin Inspector
#Unity tool
#Health bar
#Progress bar
#Unity Health bar
#Unity Mana bar
#Unity Stamina bar
#Unity HP bar
#Circle Health bar
#Unity UI Design
#unity health bar tutorial
#unity health bar slider
#unity health bar animation
#unity tutorial
#health bar
#unity tutorial for beginners
#mana bar
#Unity health
#Create a reusable Resource Bar in Unity