Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to restart a scene in unity

using UnityEngine;
using UnityEngine.SceneManagement;
public class RestartSceneExample : MonoBehaviour
{
	void Start
    {
    	SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex)//Load the current scene
	}
{
 
PREVIOUS NEXT
Tagged: #restart #scene #unity
ADD COMMENT
Topic
Name
8+8 =