title: Scene couldn't be loaded because it has not been added to the build settings
body: <p>I have 9 levels in my games but when I run the game Unity keep increasing my scene index and said the error scene couldn't be loaded because it has not been added to the build settings. Here is the current error. It said scene 33 couldn't be loaded but I have only 9. Please help me how to fix this.Thank you</p>
  <p><a href="https://i.stack.imgur.com/Iz7uI.png" rel="nofollow noreferrer">ERROR IMAGE</a></p>
  <p>Here is my code for levels.I just increase 1 levels every time the player finish:</p>
  <pre><code>IEnumerator NextLevel()
  {
      finish = true;
      PlayerPrefs.SetInt(&quot;Level&quot;, PlayerPrefs.GetInt(&quot;Level&quot;, 1) + 1);
      yield return new WaitForSeconds(1);
      SceneManager.LoadScene(&quot;Level&quot; + PlayerPrefs.GetInt(&quot;Level&quot;));
  }
  </code></pre>