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; } }
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); } }
/// <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); } }
public void ParentHasChanged() { mWidgetThis.ParentHasChanged(); }