Hold Button to Load Level - 2D Platformer Unity #11

Опубликовано: 18 Март 2026
на канале: Game Code Library
6,382
137

In this video we're going to check for our level's progress, and when it's at 100% we'll enable our player to hold down a button and load the next level after holding for long enough! We'll be using Unity's actions and event and Unity's input system. Lots of new exciting features :-)

All source code for all videos I have made and will make in the future can be found on my Patreon:
https://www.patreon.com/posts/9156854...

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:11 - Hold UI Setup
1:16 - HoldToLoadLevel Script
2:58 - Input System + Setup
3:58 - Hold UI Working!
4:09 - HoldComplete Event Action
4:31 - GameController Event Subscribe
4:55 - Levels Setup
5:46 - Level Loading Script
7:49 - Final Setup
8:05 - All Working!
8:40 - Outro