title: SceneManager.LoadScene(string) doesn't recognize scene name
body: <p>I've seen similar questions all over the internet, but none seem to apply to my situation. </p>
  
  <p>I have a very simple project with two scenes: <code>MainMenuScene</code> and <code>OtherScene</code>. <code>OtherScene</code> is nothing but a blank canvas, and <code>MainMenuScene</code> just has a button which is meant to be used to navigate to <code>OtherScene</code>. The Main Camera has the following script attached to it:</p>
  
  <pre class="lang-c# prettyprint-override"><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  using UnityEngine.SceneManagement;
  
  public class LaunchScene : MonoBehaviour {
  
      public void LaunchSceneOnButtonClick(int index)
      {
          SceneManager.LoadScene(index);
      }
  
      public void LaunchSceneOnButtonClick(string sceneName)
      {
          SceneManager.LoadScene(sceneName);
      }
  }
  </code></pre>
  
  <p>and in the <code>OnClick()</code> of the button, this script is called. I have made sure to add both levels to the Build Settings. </p>
  
  <p>If I call the version of the <code>LanchSceneOnButtonClick</code> which takes an integer argument (and specify the appropriate value in the <code>OnClick()</code> method) then the desired scene loads.</p>
  
  <p><em>However</em>, if I call the version which takes a string argument and use the exact name of the scene I want to load (and I've quadruple checked that it is indeed the exact string, that the string name has no spaces or hidden characters, and have copy pasted the scene name into the <code>OnClick()</code> argument field) the scene does not load and instead I get the error message</p>
  
  <blockquote>
    <p>Scene "OtherScene" couldn't be loaded because it has not been added to
    the build settings or the AssetBundle has not been loaded.</p>
  </blockquote>
  
  <p>Since using the scene index works, we know it was added to the Build Settings properly, so I reason that there is some issue with the scene name. But I've copied it exactly. I want to avoid using the full path of the scene in case I later decide to move scenes around to different folders, so what are my options here?</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>Adding screenshots. </p>
  
  <p>Scene in folder structure:</p>
  
  <p><a href="https://i.stack.imgur.com/evW99.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/evW99.png" alt="enter image description here"></a></p>
  
  <p>Scenes in build settings:</p>
  
  <p><a href="https://i.stack.imgur.com/fJTRh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fJTRh.png" alt="enter image description here"></a></p>
  
  <p><code>OnClick()</code> input:</p>
  
  <p><a href="https://i.stack.imgur.com/J7AhF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J7AhF.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/t2xCQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t2xCQ.png" alt="enter image description here"></a></p>
  
  <p>Keep in mind I've also tried the input to <code>OnClick()</code> with and without quotation marks.</p>