Пример #1
0
 public static Component[] FindComponentsInChildren(this Transform self, Type type, string name,
                                                    bool isRecursive = true, bool isStartWith = true)
 {
     return(TransformUtil.FindComponentsInChildren(self, type, name, isRecursive, isStartWith));
 }
Пример #2
0
 /// <summary>
 /// 找到一个符合条件的TransformA后,不会再在该TransformA中继续查找,而是找TransformA的下一个兄弟节点
 /// </summary>
 /// <param name="transform"></param>
 /// <param name="name"></param>
 /// <returns></returns>
 public static T[] FindComponentsInChildren <T>(this Transform self, string name, bool isRecursive = true,
                                                bool isStartWith = true) where T : Component
 {
     return(TransformUtil.FindComponentsInChildren <T>(self, name, isRecursive, isStartWith));
 }