Answers for "how to change loaded scene in unity"

C#
1

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");
    }
}
Posted by: Guest on April-28-2022

C# Answers by Framework

Browse Popular Code Answers by Language