Пример #1
0
        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;
        }
Пример #2
0
        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;
        }
Пример #3
0
        private void UpdateClipParent()
        {
            RectMask2D maskd = (!this.maskable || !this.IsActive()) ? null : MaskUtilities.GetRectMaskForClippable(this);

            if ((this.m_ParentMask != null) && ((maskd != this.m_ParentMask) || !maskd.IsActive()))
            {
                this.m_ParentMask.RemoveClippable(this);
                this.UpdateCull(false);
            }
            if ((maskd != null) && maskd.IsActive())
            {
                maskd.AddClippable(this);
            }
            this.m_ParentMask = maskd;
        }