Unity load next scene c# script in active scene
How to load next scene in current scene? private void LoadNextScene(){ // get current scene Scene scene = SceneManager.GetActiveScene(); // get current scene build order(index) int curScene = scene.buildIndex; // increase index to get next scene int nextScene = curScene + 1; // load next scene SceneManager.LoadScene(nextScene)} What is build order?It means that build order in build Setting. (Che..
개발/정보
2017. 7. 7. 17:03
최근댓글