protected override void OnEnable() { base.OnEnable(); m_ShouldRecalculateClipRects = true; ClipperRegistry.Register(this); MaskUtilities.Notify2DMaskStateChanged(this); }
protected override void OnDisable() { base.OnDisable(); m_MaskableTargets.Clear(); m_Clippers.Clear(); ClipperRegistry.UnRegister(this); MaskUtilities.Notify2DMaskStateChanged(this); }