Children's Children

How far down does getComponentsInChildren go? Does it stop immediately after the first layer of children or does it go into the children’s children. What is an easy way to go through the children’s children?

It goes all the way down - if you just want to check the first layer of children then you can do a for loop over transform:


List< DesiredComponentType> components = new List< DesiredComponentType>();

foreach(Transform child in transform)
    var desiredComponent = child.GetComponent< DesiredComponentType>();