Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

SceneManager.UnloadSceneAsync()

Discussion in 'Scripting' started by hausmaus, Oct 16, 2016.

  1. hausmaus

    hausmaus

    Joined:
    Dec 9, 2011
    Posts:
    105
    Hello!

    The docs for SceneManager.UnloadScene() indicate that UnloadSceneAsync() should be used instead, but that function isn't recognized by intellisense, or by the current docs.

    Is it a bug that this function is no longer available, or has its behavior largely been rolled into UnloadScene() and the docs are just out of date?

    Thanks for any insight!
    Adrian
     
  2. DonLoquacious

    DonLoquacious

    Joined:
    Feb 24, 2013
    Posts:
    1,667
    It's a new function available in the 5.5 beta, but someone was a little hasty about changing the documentation. Here's the link to the real documentation for the function. Note: it appears that the async version actually replaces the synchronous version completely.
     
  3. hausmaus

    hausmaus

    Joined:
    Dec 9, 2011
    Posts:
    105
    Thank you for the explanation, Lysander!