Add a [IClippable]] to be tracked by the mask.
static public int AddClippable(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.AddClippable(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 AddClippable(IntPtr l) { try { UnityEngine.UI.RectMask2D self = (UnityEngine.UI.RectMask2D)checkSelf(l); UnityEngine.UI.IClippable a1; checkType(l, 2, out a1); self.AddClippable(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; }
private void UpdateClipParent() { RectMask2D rectMask2D = !this.maskable || !this.IsActive() ? (RectMask2D)null : MaskUtilities.GetRectMaskForClippable((IClippable)this); if ((UnityEngine.Object)rectMask2D != (UnityEngine.Object) this.m_ParentMask && (UnityEngine.Object) this.m_ParentMask != (UnityEngine.Object)null) { this.m_ParentMask.RemoveClippable((IClippable)this); } if ((UnityEngine.Object)rectMask2D != (UnityEngine.Object)null) { rectMask2D.AddClippable((IClippable)this); } this.m_ParentMask = rectMask2D; }
private void UpdateClipParent() { RectMask2D maskd = (!this.maskable || !this.IsActive()) ? null : MaskUtilities.GetRectMaskForClippable(this); if ((maskd != this.m_ParentMask) && (this.m_ParentMask != null)) { this.m_ParentMask.RemoveClippable(this); } if (maskd != null) { maskd.AddClippable(this); } this.m_ParentMask = maskd; }
static int AddClippable(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.AddClippable(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
private void UpdateClipParent() { RectMask2D rectMask2D = (!this.maskable || !this.IsActive()) ? null : MaskUtilities.GetRectMaskForClippable(this); if (this.m_ParentMask != null && (rectMask2D != this.m_ParentMask || !rectMask2D.IsActive())) { this.m_ParentMask.RemoveClippable(this); this.UpdateCull(false); } if (rectMask2D != null && rectMask2D.IsActive()) { rectMask2D.AddClippable(this); } this.m_ParentMask = rectMask2D; }
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; }