load another scene in unity c# code example
Example 1: load another scene unity
using UnityEngine.SceneManagement;
SceneManager.LoadScene('Scene');
Example 2: load scene unity
using UnityEngine.SceneManagement
public class LoadScene : MonoBehavior
{
public string sceneToLoad = "Level2";
public void Start()
{
SceneManager.LoadScene(sceneToLoad);
}
}