protected override void OnValidate() { base.OnValidate(); m_ShouldRecalculateClipRects = true; if (!IsActive()) { return; } MaskUtilities.Notify2DMaskStateChanged(this); }
public static int Notify2DMaskStateChanged_s(IntPtr l) { int result; try { Component mask; LuaObject.checkType <Component>(l, 1, out mask); MaskUtilities.Notify2DMaskStateChanged(mask); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
protected virtual void UpdateClipabbles() { var v_clippables = GetComponentsInChildren <IClippable>(true); foreach (var v_clipabble in v_clippables) { if (ClipInsideOverriddenSortingCanvas) { AddClippable(v_clipabble); } else { RemoveClippable(v_clipabble); } } if (!ClipInsideOverriddenSortingCanvas) { MaskUtilities.Notify2DMaskStateChanged(this); } }