loading a specific scene in unity 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);
}
}