IF YOUR GAME IS FROZEN THEN: public void ResetScene() { SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex); print("Scene restarted"); Time.timeScale = 1f; } the timescale sets the time to 1 so it isn't frozen , 2 means 2 times and it probably is set to 0 which is why it’s frozen
@MennoWeerman2 жыл бұрын
is this also usefull if ur game begins lagging when u reset the scene?
@telleem65822 жыл бұрын
Thanks i was looking for this issue :)
@tomas.menniti Жыл бұрын
THANKS A LOT. Ive been looking for the game-frozen solution after reloading scene for hours. thanks thanks
@Retrospect1998 Жыл бұрын
Thanks dude,you are a life saver!
@UnltandUnlts Жыл бұрын
Thanks for the nice and easy tutorial
@Poiter02 жыл бұрын
very simple and good tutorial, thanks!
@codabex2507 Жыл бұрын
Thank you bro, i wish i saw the tutorial earlier bc i spent 2h in this, but with this tutorial it just took 5 min
@xxRafaelProductions Жыл бұрын
Ah, you're welcome, I'm glad it helped
@grizzlyjer074 Жыл бұрын
Thank you! That was a very great tutorial for a person like me that is just starting out
@Luffy2Go2 жыл бұрын
Ok great Tutorial its working Thx but how do i make it so it only shows up when i die?
@MegaSenkel Жыл бұрын
Hello. It does not function. It always pauses the scene and then continues shortly after the pause when I click the button where I added the function
@PaulLeBlanc4u2 жыл бұрын
great video Rafael, simple to follow and works perfectly. thanks.
@heppy_dogs Жыл бұрын
amazing tutorial, thank you very much!
@Goofy_Music2 жыл бұрын
When I hit reset it makes everything gltichy, like all the textures are gone and stuff
@thedave1602 Жыл бұрын
Wow dude. You made that so simple. Thanks.
@dakshrokadia_MTB2 жыл бұрын
Question : when resetting the scene the shadows of the game become hard only instead of hard and soft how can I stop this?
@lonelycommunist2672 жыл бұрын
Very simple and effective, Thanks.
@ManmadeHorrorsBeyond Жыл бұрын
why am I getting "error CS1519: Invalid token '(' in class, record, struct, or interface member declaration" when I try to run your code in a function?
@sifisosamson24759 ай бұрын
Thanks alot . YOU are a GOD(Life Saver)
@marlonbockelmann7614 Жыл бұрын
Thank you for this tutorial.
@OmeedNOuhadi2 жыл бұрын
@xxRafael Productions - Rafael Vicuna, thanks. I was following a tutorial and could not find the GameReset() function. After a few minutes of your video it occurred that I did not finish the script to a public void GameReset() line.
@lilangulap82768 ай бұрын
Thanks much sir!
@gazalgamer3250 Жыл бұрын
Thank u so much ❤❤ u save my life😅
@jabba8591 Жыл бұрын
if people are getting confused he is using the main camrea as a script holder for the code
@vortex.69 Жыл бұрын
Thanks a lot mate 👍
@davidelvloguer1901 Жыл бұрын
Good video bro, thanks
@andormarcel66243 жыл бұрын
Im trying to reset a scene and every variable in my scripts to their defaults. Is there a way to do this or do i have to change them manually every time i restart the scene ?
@r-ty_dragon13342 жыл бұрын
I have the same issue
@mantavisions23622 жыл бұрын
any fix?
@andormarcel66242 жыл бұрын
@@mantavisions2362 Basically, i have set my variables in the (Start) so every time my level is loaded they are reset to my preferences, then if i want to add more levels i can set different values in each (Start) function
@koenemanse78082 жыл бұрын
Would using a keystroke for this work as well?
@eladkalif35902 жыл бұрын
YOU ARE AMAZING!
@Dog_Awesome21 Жыл бұрын
Thx so much very simple tutorial
@sawlekk871517 күн бұрын
This approach fully reloads the scene, resetting all objects, scripts, and variables. What Happens: The scene starts over completely as it did when first loaded. Any unsaved progress is discarded.
@tolgakyz2 жыл бұрын
hi, When the scene is reloaded, it picks up where it left off. The scene does not start over :(
@mantavisions23622 жыл бұрын
hi, were you able to fix this?
@tolgakyz2 жыл бұрын
@@mantavisions2362 hi, I solved this problem. The problem is with the timer. My character dies after 1f second not touching the ground. Since time started in the menu scene, the character was dead when I switched to the game scene. If there is a similar situation, you should check the timer.
@Deatheragenator Жыл бұрын
This method has a side effect of breaking some other action like enable and disable.
@spooky_141 Жыл бұрын
when i die nothing happens not showing restart scene
@bondragame19592 жыл бұрын
Nice Bro, easy to learn for newbe like me.
@DarthHandle Жыл бұрын
i cant see my button on 3d
@jackhepworth30532 жыл бұрын
doesnt work very well it makes my game dark after restart.
@chickon_real2 жыл бұрын
Tysm
@mTrustis9 ай бұрын
thank you
@hoseinstar96612 жыл бұрын
Tnx mate 🌷
@themoreyaknow83842 жыл бұрын
Thanks!
@bossfakealeks12345 Жыл бұрын
this will not help me with data that is saved on a ID . I need something that deletes everything, Thanks
@AbhirajAkshat Жыл бұрын
Thank You ||
@Chance_POV2 жыл бұрын
This method breaks my current game. Everything works except the player. He jumps barely off the ground and I've checked all my variables in debug. Gonna check out other reset solutions, idk wtf is going on