- Home /
How do I force a GameObject with children to collapse and expand in the hierarchy view?
I'm using a C# script on a GameObject that has a check-box to hide and unhide the children of the GameObject. I also want the check-box to force the GameObject to collapse and expand in the hierarchy view when it is checked and unchecked.
How can I accomplish this effect? C# is my preferred language, but I'll take any help I can get.
Answer by christoph_r · Sep 29, 2014 at 06:55 PM
Alt-Click on the arrow next to it.
Thanks, but that isn't what I'm looking to do. I'm trying to achieve that effect with a script. Using only code.
Your answer
Follow this Question
Related Questions
Using script's method from all of the gameobjects that has that script 2 Answers
c# destroy gameobject on 0 hp 2 Answers
Detecting moment when GameObiect is created in hierarchy. 1 Answer
C# Function Transform to Gameobject Convert 1 Answer
How Do You Have Multiple High Scores For 1 GameOverScene? 1 Answer