Hey, I've been wanting to contract and retract certain GameObjects back into their parents by using hotkeys instead of having the designers click on each little arrow.(The Hierarchy tab) I don't think anyone has ever tried to do this before as it seems, even at multiple glances, a rather useless thing to try to do.
Creating a custom hierarchy tab by using editor window means bugs 'r' us.
If, god forbid, they use foldouts in their Hierarchy tab code to show the child and parent relationship and overall organization(which is very likely at this point...), I'd have to access the Hierarchy tab's script and find those individual bools via... Object Id?... Not even sure if I can do that. Has anyone accessed the hierarchy tab and gotten those foldouts? If so I'd be very interested to know 8 r.

There is the function EditorGUI.Foldout but I do not know if you have access to it for the hierarchy tab.
– efge