コード例 #1
0
 public virtual void CalculateLayoutInputHorizontal()
 {
     this.rectChildren.Clear();
     for (int index = 0; index < ((Transform)this.rectTransform).get_childCount(); ++index)
     {
         RectTransform child = ((Transform)this.rectTransform).GetChild(index) as RectTransform;
         if (((Component)child).get_gameObject().get_activeInHierarchy())
         {
             ILayoutIgnorer component = (ILayoutIgnorer)((Component)child).get_gameObject().GetComponent <ILayoutIgnorer>();
             if (component == null || !component.get_ignoreLayout())
             {
                 this.rectChildren.Add(child);
             }
         }
     }
 }