public static List <Transform> ListDecendantsByDepth(this Transform root) { return(root.childCount != 0 ? new List <Transform>(TransformHelpers.IterateChildren(root, 0)) : new List <Transform>(0)); }
public static List <Transform> ListDecendantsByDepth(this Transform root) { return(root.childCount != 0 ? new List <Transform>(TransformHelpers.IterateChildren(root, 0)) : new List <Transform>(0)); }