Learn how to create Progress Bars that report their progress by raising events! In this tutorial you'll learn how to, from scratch, create a new progress bar using C# and the Unity UI System. You'll learn how to raise UnityEvents (to hook up in the inspector) or delegate functions (to hook up with code) as the progress bar updates. In our example we'll update some TextMeshProUGUI text with the progress as it fills up.
💸 Ongoing sales 💸
⚫ See all active asset sales on the Asset Store: assetstore.uni...
⚫ Save 25% off your first Asset Store Order: prf.hn/click/c...
⚫ Save up to 50% on NEW Assets: assetstore.uni...
👨💻 As always, all code from this video is available on GitHub: github.com/lla...
❤ Believe in LlamAcademy's mission and have received value from the videos? Become a Patreon Supporter or RU-vid Member:
⚫ Patreon: / llamacademy
⚫ RU-vid Member: / @llamacademy or click the Join button on any video
----
Most tutorials come from knowledge gained making survival.llama... Llama Survival - a top-down zombie survival shooter for Android and iOS.
I also have some Unity Assets (affiliate link): assetstore.uni...
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.
#unitytutorial #tutorialtuesday #gamedev #tutorial #unity #llamacademy #gamedevelopment
Chapters:
00:00 Progress Bars in Games & Short Explanation of How to Create Them
01:25 Setting up Progress Bars on a Canvas
02:40 ProgressBar.cs - Variables and Start
04:03 ProgressBar.cs - Overloaded SetProgress
06:40 Hooking up Components & Events
08:02 Demo
09:02 Final Thoughts and Warning
17 авг 2024