Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to change loaded scene in unity

using UnityEngine;
using UnityEngine.SceneManagement;//Add this library first

public class Example : MonoBehaviour
{
    void Start()
    {
	//Here you put exact name of scene you want to load instead of "Level_2"
        SceneManager.LoadScene("Level_2");
    }
}
 
PREVIOUS NEXT
Tagged: #change #loaded #scene #unity
ADD COMMENT
Topic
Name
6+4 =