◆ AllDecendantsList() [1/2]

static List<Transform> AllDecendantsList ( this Transform  transform,
bool  groupByLevel = true 
)
static
Parameters
transformcalling transform. all's it descendants will be included in the result. It will not be included itself.
groupByLevelIf true, then items will be added to the list in level or generational order. (children, grand-children, great-grand-children,etc.) Otherwise, it will iterate each branch completely, before moving to the next.
Returns
The assembled list of transform references.