Answers for "unity restart scene"

C#
18

unity reset scene

//for unity c#
using UnityEngine.SceneManagement;
...
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
Posted by: Guest on March-31-2020
1

unity restart scene

using UnityEngine.SceneManagement; ... SceneManager.LoadScene("Scene_Name");
Posted by: Guest on September-26-2021
2

how to rerun unity game in code

SceneManager.LoadScene( SceneManager.GetActiveScene().name );
Posted by: Guest on April-11-2020

C# Answers by Framework

Browse Popular Code Answers by Language