Remove an IClippable from being tracked by the mask.
static public int RemoveClippable(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif UnityEngine.UI.RectMask2D self = (UnityEngine.UI.RectMask2D)checkSelf(l); UnityEngine.UI.IClippable a1; checkType(l, 2, out a1); self.RemoveClippable(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }
static public int RemoveClippable(IntPtr l) { try { UnityEngine.UI.RectMask2D self = (UnityEngine.UI.RectMask2D)checkSelf(l); UnityEngine.UI.IClippable a1; checkType(l, 2, out a1); self.RemoveClippable(a1); return(0); } catch (Exception e) { return(error(l, e)); } }
private void UpdateClipParent() { RectMask2D rectMask2D = (!maskable || !IsActive()) ? null : MaskUtilities.GetRectMaskForClippable(this); if (rectMask2D != m_ParentMask && m_ParentMask != null) { m_ParentMask.RemoveClippable(this); } if (rectMask2D != null) { rectMask2D.AddClippable(this); } m_ParentMask = rectMask2D; }
static int RemoveClippable(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.UI.RectMask2D obj = (UnityEngine.UI.RectMask2D)ToLua.CheckObject(L, 1, typeof(UnityEngine.UI.RectMask2D)); UnityEngine.UI.IClippable arg0 = (UnityEngine.UI.IClippable)ToLua.CheckObject(L, 2, typeof(UnityEngine.UI.IClippable)); obj.RemoveClippable(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
private void UpdateClipParent() { RectMask2D rectMask2D = (!maskable || !IsActive()) ? null : MaskUtilities.GetRectMaskForClippable(this); if (m_ParentMask != null && (rectMask2D != m_ParentMask || !rectMask2D.IsActive())) { m_ParentMask.RemoveClippable(this); UpdateCull(cull: false); } if (rectMask2D != null && rectMask2D.IsActive()) { rectMask2D.AddClippable(this); } m_ParentMask = rectMask2D; }
private void UpdateClipParent() { var newParent = (maskable && IsActive()) ? MaskUtilities.GetRectMaskForClippable(this) : null; if (newParent != m_ParentMask && m_ParentMask != null) { m_ParentMask.RemoveClippable(this); } if (newParent != null) { newParent.AddClippable(this); } m_ParentMask = newParent; }
private void UpdateClipParent() { var newParent = (maskable && IsActive()) ? MaskUtilities.GetRectMaskForClippable(this) : null; // if the new parent is different OR is now inactive if (m_ParentMask != null && (newParent != m_ParentMask || !newParent.IsActive())) { m_ParentMask.RemoveClippable(this); UpdateCull(false); } // don't re-add it if the newparent is inactive if (newParent != null && newParent.IsActive()) { newParent.AddClippable(this); } m_ParentMask = newParent; }