- Home /
complexity of hierarchy affects performance?
Hi, all
Let me keep my question simple :)
Will the complexity of hierarchy affects performance? ( I mean to have parent objects with many children and children with many sub children)
Regards.
Answer by tanoshimi · Sep 09, 2015 at 06:39 PM
It depends.
A deep-nested hierarchy, in itself, won't have performance implications. But if you're traversing that hierarchy (using Transform.Find, say), or manipulating objects in such a way that a number of other objects are affected (e.g. adjusting the scale of a parent object with many children), then it could differ compared to a flat hierarchy.
But then again, you've also got to consider what makes most sense when logically arranging the objects in your scene. I'd happily take a minor performance hit in return for a neat scene hierarchy that improved my development productivity...
Your answer
![](https://koobas.hobune.stream/wayback/20220612033054im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Accessing children of instances vs children of original prefab 1 Answer
Change an object's grandparent 2 Answers
Child selection forces parent selection 1 Answer
Moving objects together without parenting 5 Answers
all parents of a transform 1 Answer