title: Unity: Are running Coroutines destroyed upon loading new scene?
body: <p>If you have a coroutine running in a script attached to an object in a given scene, when that scene ends, does the coroutine get terminated/destroyed? ...even if the coroutine contains e.g. an endless While loop?</p>
  
  <hr>
  
  <p>For instance, if I have the following coroutine attached to an object in my scene:</p>
  
  <pre><code>IEnumerator SampleCoroutine()
  {
      while (true) {
          yield return new WaitForSeconds(1.0f);
      }
      yield return null;
  }
  </code></pre>
  
  <p>...when a new scene is loaded, assuming no script attached to the object contains "<code>DontDestroyOnLoad(...)</code>", will the coroutine still execute in the newly loaded scene?</p>
  
  <p>Reason for asking: I need to know whether I need to keep a list of all active Coroutines, so that I can end them after every scene change. I don't want performance to degrade as more scenes are used.</p>