unity load scene\ code example
Example 1: load scene unity
using UnityEngine.SceneManagement
public class LoadScene : MonoBehavior
{
public string sceneToLoad = "Level2";
public void Start()
{
SceneManager.LoadScene(sceneToLoad);
}
}
Example 2: unity how to load a scene
SceneManager.LoadScene("Game");