Search Unity

Weird Hierarchy view after trying to use "LoadSceneAsync" to switch between scenes

Discussion in 'Scripting' started by subzer0, Feb 13, 2016.

  1. subzer0

    subzer0

    Joined:
    Dec 10, 2010
    Posts:
    94
    Hello,

    I was trying to use SceneManager.LoadSceneAsync to switch between scenes in my game.
    Then When I clicked Play, this is how the hierarchy view looked like:

    And Now I don't know how can I bring back the default view, even though I changed the line of code to SceneManager.LoadScene.

    Can anyone help me please ? :)
     
  2. Johannski

    Johannski

    Joined:
    Jan 25, 2014
    Posts:
    826
    What do you mean with default view? To get rid of all the not loaded scenes you can just switch to another scene and then back to wheelSpin. Or you can remove the scenes one by one by clicking on the dropdown icon on the right side of the scene names... Is that what you want to know?
     
  3. subzer0

    subzer0

    Joined:
    Dec 10, 2010
    Posts:
    94
    @Johannski , Yeah I meant I wanted to get rid of all not loaded scenes. It worked now. Thanks! But why does LoadSceneAsync fills the hierarchy view with unloaded scenes ?
     
  4. Johannski

    Johannski

    Joined:
    Jan 25, 2014
    Posts:
    826
    I don't know your script, but I guess you are calling the load function more often than once, which ends up in loading the scene over and over until you finished loading the scene once... Just a guess.