Multi Scene Editing error - scenes duplicating in hierarchy

Greetings.

We hesitated updating our Unity from 5.1 to 5.3 as we have a live product and we know Unity can break or change working features on updates. After working through all the stuff that 5.3 broke on our end, we are down to 1 last wonky item - the new Multi Scene Editing function. The remove scene button doesn’t work and as we work on scenes our hierarchy is just filling up with other scenes, some of which we are not even using at the time. The only work-around we have found is to remove all scenes except the scene we are working on from the build settings, which is not acceptable. Anyone else having this problem or know of a solution? Even when creating new scenes I still get a hierarchy full of another scene I am not using. For example create a new scene. Hit play and stop and now my Login scene is in the hierarchy. Now, every time I hit play it adds another copy of Login scene to my hierarchy until it’s completely full and I cannot see any of my scene items anymore. Something also strange is each scene is light grey and says “SceneName (not loaded)” Remove scene doesn’t work, changing scenes doesn’t work, the only way to unload is to restart Unity which sometimes takes a while on a big project like ours. Looking for a fix if anyone has an Idea, or to simply turn this feature off if possible.

Also, in the future, on the back end of this feature, a Unity Dev needs to maybe code in a failsafe that doesn’t allow a scene to be loaded into the hierarchy more than once - it is redundant and useless to allow this to happen, and of course causes problems as we see here. Thanks!

Please report as bug :slight_smile:

1 Like

Hi,

There is a bug in the SceneManager which wrongly puts scenes into the hierarchy if you load them during exit of play mode. This could for example happen if you call LoadScene in Destroy or Disable on some MonoBehaviour.

A fix is currently being tested.

1 Like

Ahh thanks so much for letting me know!

Hi Guys,

Can anyone tell me steps in code wise how to run Editor tests in Play mode. I am getting exception as

This cannot be used during play mode, please use SceneManager.CreateNewScene() instead.

Can anyone help me running Editor test cases in play mode.

You can’t run editor tests in play mode. I believe you can use this to write tests in play mode https://www.assetstore.unity3d.com/en/#!/content/13802