Question : unity next scene
Answered by : mage
//For C# in unity
UnityEngine.SceneManagement;
....
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
Source : | Last Update : Wed, 08 Apr 20
Question : unity next scene
Answered by : oldfashioned-osprey-btaxzdfv2vx8
using UnityEngine.SceneManagement;
int currentSceneIndex = SceneManager.GetActiveScene().buildIndex;
if(currentSceneIndex<SceneManager.sceneCount-1)
{ SceneManager.LoadScene(currentSceneIndex + 1);
}
Source : https://codefantasy.org/questions/35374684/How-to-move-to-next-scene-using-scene-manager-in-Unity-5 | Last Update : Thu, 03 Mar 22