0
Q:

change scene unity

SceneManager.LoadScene("name of scene", LoadSceneMode.Single);
3
using UnityEngine.SceneManagement;

int buildIndex = 0;
//Load the scene with a build index
SceneManager.LoadScene(buildIndex);
11
using UnityEngine.SceneManagement;

SceneManager.LoadScene('Scene');
2
using UnityEngine.SceneManagement


public class LoadScene : MonoBehavior
{
	public string sceneToLoad = "Level2";
    
    public void Start()
    {
    	SceneManager.LoadScene(sceneToLoad);
    }
}
1
 SceneManager.LoadScene (sceneBuildIndex:/*Put the number here*/);
0

New to Communities?

Join the community