Logo my studio is game, portfólio is developer game

Reset the current scene in unity

In certain games developed in unitywe have to give or offer the option to reset the sceneThis is enough:

using UnityEngine;
using UnityEngine.SceneManagement;

class ResetGame_Script : MonoBehaviour
{
    public void Reset()
    {
    SceneManager.LoadSceneAsync(SceneManager.GetActiveScene().name);
    }
}

Make contact!

Did you like this content? Let's talk...

I'm a game developer, I use unity. If you want to develop something, tell me!