Unity 3d - change scence how to
C#: how to switch to another scene in Unity 3d
using UnityEngine.SceneManagement;
..
SceneManager.LoadScene("myNextScene");
get current scene name:
Debug.Log(SceneManager.GetActiveScene().name.ToString());
get Scene:
private Scene view;
...
this.view = SceneManager.GetActiveScene();
0 Kommentare:
Kommentar veröffentlichen
Abonnieren Kommentare zum Post [Atom]
<< Startseite