<aside> 📄 This script will reset your current Unity scene (level) by pressing the “r” key

</aside>

using UnityEngine;

using UnityEngine.SceneManagement;

public class RestartLevel : MonoBehaviour {

**void** **Update**()
{
    **if** (Input.GetKeyDown("r"))
    {
        ResetCurrentScene();
    }
}

**void** **ResetCurrentScene**()
{
    Debug.Log("Scene Loaded");
    SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
}

}