- Home /
Question on Saving "Hierarchy state"
Hello everyone, I've been wondering if there is a way to save the "Hierarchy state" when saving the scene before switching to a different one (in other words, can you save what sub-gameobjects were "open" or "closed" in the menu so when you come back into the scene, you don't have to setup your hierarchy all over again to work on specific objects).
Perhaps this is supposed to be the default behavior but I'm not seeing it. In fact, many times the hierarchy objects seem randomly opened or closed, not sure if this is the expected behavior.
Any ideas are appreciated.
Answer by DESTRUKTORR · Jul 08, 2014 at 10:51 PM
You may want to check out these two answers:
Fold/unfold gameobject from code
keep gameObject in hierarchy folded when not selected
You will likely need to track the selections made, but in reality, there is no "direct" way to get which ones are folded and unfolded in the editor. My best suggestion to you would be to organize your scene a bit more carefully, so it isn't quite so hard to locate the important objects, or automate some of the processes that you're taking to edit them, through editor scripts.
Answer by hexagonius · Oct 17, 2019 at 08:16 AM
The Asset Store is your friend: https://assetstore.unity.com/packages/tools/utilities/hierarchy-restore-94578
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Shutting a function when another function calling. 1 Answer
Rotation/position question. 1 Answer
About using the free sourse unity 1 Answer
get browers info 0 Answers