static void FindGameObjectRecur(GameObject go, string name, List <GameObject> buffer) { GameObject temp = TransformEx.GetChildGameObject(go, name); if (temp) { buffer.Add(temp); } }
public static Transform FindTransform(GameObject go, string name) { var findGO = TransformEx.GetChildGameObject(go, name); return(findGO ? findGO.transform : null); }
public static GameObject FindGameObject(GameObject go, string name) { return(TransformEx.GetChildGameObject(go, name)); }