How to RESTART THE SCENE in Unity by PRESSING a KEY, a BUTTON or calling from OTHER SCRIPT

Опубликовано: 17 Октябрь 2024
на канале: GDT Solutions
3,221
21

In this video I provide three examples on how to reload the scene in Unity, the first one by pressing a key, the second example is to reload the scene when pressing a button and in the third example I create another script with a simple countdown timer and when it elapses the script calls the restart function in the other script.

TIMESTAMP
0:00 - Intro. Important details
0:30 - Script to reload a scene in Unity
1:06 - 1st method. Restart pressing a key
1:24 - 2nd method. Restart pressing a Canvas button
1:58 - 3rd method. Another script call restart
3:35 - Reusing the system in other scenes

____________________________________________________________
PORTFOLIO: https://gamedevtraum.com/en/portfolio...
CONTACT:   / gamedevtraum  
LINKEDIN:   / gamedevtraum  
DONATIONS
-You can download one of me free assets for Unity from my ITCH page and leave a donation
-You can donate with the THANKS button on every video
____________________________________________________________