Beispiel #1
0
        protected override void OnEnable()
        {
            base.OnEnable();

            m_ShouldRecalculateClipRects = true;
            ClipperRegistry.Register(this);
            MaskUtilities.Notify2DMaskStateChanged(this);
        }
Beispiel #2
0
        protected override void OnDisable()
        {
            base.OnDisable();

            m_MaskableTargets.Clear();
            m_Clippers.Clear();
            ClipperRegistry.UnRegister(this);
            MaskUtilities.Notify2DMaskStateChanged(this);
        }