Progress Bar UI and Unity Events - 2D Platformer Unity #9

Опубликовано: 25 Февраль 2026
на канале: Game Code Library
6,029
116

*FREE code for this video on my Patreon*
In this episode we'll make use of our Gems to increase our levels progress. We also used Unity Events to trigger actions from one script to another. We'll visually represent this progress gain with a slider! Now we'll be all prepared for loading our next level in a future video.

All source code for all videos I have made and will make in the future can be found on my Patreon:
  / gamecodelibrary  

Check out the series previous videos:
   • FULL Platformer Tutorial Series - Unity 2D  

Sprite sheet: https://www.kenney.nl/assets/1-bit-pl...

Discord:   / discord  

I'll be posting new videos every week, so be sure to subscribe to see what kind of adventure we can go on together! I'm excited! :-)

If you have any suggestions, feedback or questions, be sure to comment below! Any opinions will help me out on this journey ♡

0:00 - Intro
0:12 - Gem Script Action
0:57 - GameController Script
2:14 - GameController Object Setup
2:22 - Slider
3:47 - GameController + Slider
3:51 - Working!
3:57 - Varying Gem Worths (Prefabs)
4:50 - Outro