ParentHasChanged() public method

Checks to ensure that the widget is still parented to the right panel.
public ParentHasChanged ( ) : void
return void
Ejemplo n.º 1
0
 static public int ParentHasChanged(IntPtr l)
 {
     try {
         UIWidget self = (UIWidget)checkSelf(l);
         self.ParentHasChanged();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 private void ChangeDepth(UIWidget widget, UIPanel panel, int newWidgetDepth, int newPanelDepth)
 {
     if (null != widget)
     {
         widget.ParentHasChanged();
         widget.depth = newWidgetDepth;
     }
     if (null != panel)
     {
         panel.depth = newPanelDepth;
     }
 }
Ejemplo n.º 3
0
	static int ParentHasChanged(IntPtr L)
	{
		try
		{
			ToLua.CheckArgsCount(L, 1);
			UIWidget obj = (UIWidget)ToLua.CheckObject<UIWidget>(L, 1);
			obj.ParentHasChanged();
			return 0;
		}
		catch (Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}
Ejemplo n.º 4
0
        /// <summary>
        /// 刷新对象
        /// </summary>
        public static void RefreshTrans(Transform trans)
        {
            int      childNum   = trans.childCount;
            UIWidget selfWidget = trans.GetComponent <UIWidget>();

            if (selfWidget != null)
            {
                selfWidget.ParentHasChanged();
                selfWidget.MarkAsChanged();
            }
            for (int i = 0; i < childNum; i++)
            {
                Transform childTrans = trans.GetChild(i);
                RefreshTrans(childTrans);
            }
        }
Ejemplo n.º 5
0
 public void ParentHasChanged()
 {
     mWidgetThis.ParentHasChanged();
 }