title: Get name of next Scene in build settings in Unity3D?
body: <p>So, what I want to do seems like it should be extraordinarily simple. I need to grab the <em>name</em> (not load it) of the next scene, as listed in the build settings.</p>
  
  <p>I thought I had a simple solution by doing something like this:</p>
  
  <pre><code>int currentIndex = SceneManager.GetActiveScene().buildIndex;
  string nextSceneName = SceneManager.GetSceneAt(currentIndex + 1).name
  </code></pre>
  
  <p>But apparently that "GetSceneAt" doesn't apply to the scenes in the build settings, instead it's for some kind of internal list that the SceneManager has.</p>
  
  <p>All my google searches bring up solutions based on a specific naming order for your scenes, or exporting the list of scenes to a file before building (a list that manually needs to be exported), etc. I can't imagine such a simple problem requires such a complex solution, which is why I'm asking for myself.</p>
  
  <p>How can I just grab the name of the next scene in the build settings?</p>