Unity - RESET / RELOAD CURRENT SCENE WITH BUTTON CLICK Tutorial - EASY C# Coding

preview_player
Показать описание
A very easy way to reset the scene with a click of a button in Unity, using C# programming. This can also serve as a "retry" button, if hypothetically, you were creating a game and want to make the user restart their progress if they lose. Hopefully this helped!

Skype: rafa.v35 #linuxtutorialvideos #ubuntututorialvideos #ubuntulearningtutorial #centostutorialvideos #centosadministrationtutorial #learninghowtoprogramgames #learningunityprogramming #simplecodingtutorial #easycodingtutorials #veryeasycodingtutorials #unityeasygametutorial
Рекомендации по теме
Комментарии
Автор

you strike your keyboard with the ferocity of a thousand snapping turtles

CompSciCentral
Автор

Thank you so much! I've never seen a more thorough tutorial than this

rporikl
Автор

10/02/202 > Thank you, this still work!

satobi
Автор

If you want this on a key instead of pressing a button with the mouse cursor then use my script I created while tweaking around with the script used in this video:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class ControlCenter : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{
bool restart = Input.GetKeyDown(KeyCode.R);

if (restart)
{

}
}



}

blqs
Автор

hi, i really need an answer for this asap. What if, instead of a main camera, there's an isometric cam and other cameras, what do i drag into the 'On Click' under the list? And also, the script isn't shown in the function

vincentgerard
Автор

I have literaly been searching for TWO MONTHS how to make a reset buton and nothing I search how to reset image position and I get this ! I don't know if I should curse ore say thanks to youtube for that !
Also thanks for the help

destinyryu
Автор

how are the button ons on your keyboard sounds like your pressing them a bit hard

Slomk
Автор

Hey, I noticed there are two similar videos, but one is longer than the other one. What exactly is the difference besides the length of the video?

zedin
Автор

Thanks dude this video helped me alot. But when I press the Start button the lights are going all crazy

plaknightgames
Автор

Hi, I'm hoping someone will answer, so here is the problem when I click reset button the scene is freeze and doesn't move please someone help me

md
Автор

hello one thing how do i make the button go away at the start of each scene

SixFlickz
Автор

Bro what did your keyboard ever do to you

FloridaManGaming
Автор

it's not working after you load a scene to memory form player pref. and if you touch the scene during play you made it dirty so you need a workaround to delete all objects from player pref and then open a new scene in run time.

yudnai
Автор

I had so much error CS0117 definition error and I CANT FIX THEM PLS HELP

gearsunrayy
Автор

6:25 My project doesn’t have a ControlCenter option? Does anyone have any idea why? (Thanks!)

Wilkoooo
Автор

How do I bind it to a key instead of cursor, I have a first person game with no cursor.

blqs
Автор

"Restart"? No, "Click me to reset the scene" :D

uuBach
Автор

This video could have been like 3 minutes long

Astianpesu
Автор

Code:




the print does not work

Mr.DozerYT