title: Unity cannot set ActiveScene
body: <p>I'm switching scenes:</p>
  
  <pre><code>SceneManager.LoadScene("Scene2");
  Debug.Log("Current scene: " + SceneManager.GetActiveScene().name);
  </code></pre>
  
  <p>Debug says:</p>
  
  <pre><code>Current scene: Scene1
  </code></pre>
  
  <p>I've tried this also:</p>
  
  <pre><code>SceneManager.LoadScene("Scene2");
  StartCoroutine(WaitUntilEndOfFrame());
  Debug.Log("Current scene: " + SceneManager.GetActiveScene().name);
  
  private IEnumerator WaitUntilEndOfFrame() {
  
  yield return new WaitForEndOfFrame();
  
  }
  </code></pre>
  
  <p>Still says </p>
  
  <pre><code>Current scene: Scene1.
  </code></pre>
  
  <p>I've tried SetActiveScene(SceneManager.GetSceneByBuildId(1));</p>
  
  <p>I've tried launching that as a coroutine, I've tried that and waiting for 5 seconds. Still ActiveScene is Scene1, even though the scene changes in Unity. Nothing changes the active scene...</p>