- Home /
Setting the position of additive scenes in the hierarchy
TLDR; In the editor you can drag and re-arrange the order of the scenes... I'm basically looking for the code equivalent of that.
Hi, I'm new to scene management and I haven't been able to find an answer for this elsewhere.
I'm trying to setup a system in which ApplicationCore manages the scenes, GameNav holds the UI to change activities, and any scene in-between those is a swappable interactive activity. The problem is if I remove TestScene and add a new scene, it is automatically placed at the bottom of the hierarchy, covering up GameNav.
Is it possible to determine the order of scenes that have been added onto the main scene with
AsyncOperation asyncLoad = SceneManager.LoadSceneAsync(sceneName, LoadSceneMode.Additive);
Thanks!
Answer by SlowCircuit · Jun 13, 2018 at 12:42 AM
I don't believe you can change the order. If you want to know the order then you can always keep a list of scene names, add to it when you load a scene and remove from the list when you leave that scene. If you're saying you have multiple user interfaces and they're displaying in the wrong sort order, then you might need to rethink your UI setup.
Your answer
Follow this Question
Related Questions
Reload a scene without closing the inspector and hierarchy 0 Answers
Callback for when an object is deleted from the scene by the user in EditorMode. 3 Answers
How can I permanently display (`EditorApplication's) current scene name in Editor? 1 Answer
Unity keeps asking to save a scene 6 Answers
Asynchronously Load a Scene, then switch to it on function call Unity 5.3 1 Answer