SceneManager.LoadSceneAsync("Scene3"); code example
Example 1: unity LoadSceneAsync get scene
Scene reference; bool isLoading; IEnumerator LoadScene(string sceneName) { this.isLoading = false; AsyncOperation op = SceneManager.LoadSceneAsync(sceneName, LoadSceneMode.Additive); while (this.isLoading) { if (op.isDone) { this.isLoading = false; this.reference = SceneManager.GetSceneByName(sceneName); } yield return 0; } }
Example 2: scenemanager.loadscene
SceneManager.LoadScene(scenename);