public void UpdatePointsByChildren() { pointS.Clear(); C_PathWaypoint[] pS = transform.GetComponentsInChildren <C_PathWaypoint>(); pointS = U_List.ArrayToList(pS); //原工程 //equipS.Clear(); foreach (C_PathWaypoint point in pS) { //原工程 //if (point.target != null && point.target.GetComponent<DC_EquipObj>() != null) //{ // equipS.Add(point.target.GetComponent<DC_EquipObj>()); //} } UpdateStopList(); }
/// <summary> /// 返回当前选中的物体,只能在Editor下使用 /// </summary> /// <returns></returns> public static List <Transform> GetTransforms() { return(U_List.ArrayToList(Selection.transforms)); //Application. }
void ObjInit() { 四分屏 = transform.GetChild(0); 单个屏 = transform.GetChild(1); rawImageS = U_List.ArrayToList(四分屏.GetComponentsInChildren <RawImage>(true)); }