When i write +1 unity adds 3
I made 2 scenes and i made a script when i finish the first one you go to the next scene but i finish the first scene and it doesn't go to the next level and i get a error that "Scene with build index: 3 couldn't be loaded because it has not been added to the build settings." In my script i put that it adds 1 to the build index the first level is so it should find a build index 1 because 0+1 = 1.
my script: SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
The full error: Scene with build index: 3 couldn't be loaded because it has not been added to the build settings. To add a scene to the build settings use the menu File->Build Settings... UnityEngine.SceneManagement.SceneManager:LoadScene(Int32) LevelComplete:LoadNextLevel() (at Assets/LevelComplete.cs:9)
(bad english)
Your answer
Follow this Question
Related Questions
Relative Position Not Constant? 0 Answers
What is using equation for SpringJoint solver? 0 Answers
Unity transform.forward issue 1 Answer
Vector equation for dragging a Quad billboarding the Camera 0 Answers
2D kinematics 1 Answer