Example #1
0
 private void Start()
 {
     m_lastBoundary = (KaiTool_Boundary)m_boudary.Clone();
     if (m_UIParent == null)
     {
         OnRendered(GetEventArgsByHandles());
     }
 }
Example #2
0
 private void OnRendered(BoundedUIObjectEventArgs e)
 {
     ResizeBoundaryScale(e);
     RelocatePosition(e);
     ResetMeshObj();
     if (m_boundaryScaleMode == BoundaryScaleMode.ScaleWithParent)
     {
         var count = transform.childCount;
         for (int i = 0; i < count; i++)
         {
             var obj = transform.GetChild(i).GetComponent <KaiTool_BoundedUIObject>();
             if (obj != null)
             {
                 obj.OnRendered(e);
             }
         }
     }
     m_lastBoundary = (KaiTool_Boundary)m_boudary.Clone();
 }