Exemplo n.º 1
0
        protected override void OnDisable()

        {
            //Debug.Log("*** SubObject OnDisable() ***");



            //m_canvasRenderer.Clear();

            TMP_UpdateRegistry.UnRegisterCanvasElementForRebuild(this);



            if (m_MaskMaterial != null)

            {
                TMP_MaterialManager.ReleaseStencilMaterial(m_MaskMaterial);

                m_MaskMaterial = null;
            }



            if (m_fallbackMaterial != null)

            {
                TMP_MaterialManager.ReleaseFallbackMaterial(m_fallbackMaterial);

                m_fallbackMaterial = null;
            }



            base.OnDisable();
        }
Exemplo n.º 2
0
 protected override void OnDisable()
 {
     TMP_UpdateRegistry.UnRegisterCanvasElementForRebuild(this);
     if (this.m_MaskMaterial != null)
     {
         TMP_MaterialManager.ReleaseStencilMaterial(this.m_MaskMaterial);
         this.m_MaskMaterial = null;
     }
     if (this.m_fallbackMaterial != null)
     {
         TMP_MaterialManager.ReleaseFallbackMaterial(this.m_fallbackMaterial);
         this.m_fallbackMaterial = null;
     }
     base.OnDisable();
 }
Exemplo n.º 3
0
 protected override void OnDisable()
 {
     TMP_UpdateRegistry.UnRegisterCanvasElementForRebuild((ICanvasElement)(object)this);
     if (base.m_MaskMaterial != null)
     {
         TMP_MaterialManager.ReleaseStencilMaterial(base.m_MaskMaterial);
         base.m_MaskMaterial = null;
     }
     if (m_fallbackMaterial != null)
     {
         TMP_MaterialManager.ReleaseFallbackMaterial(m_fallbackMaterial);
         m_fallbackMaterial = null;
     }
     //((MaskableGraphic)this).OnDisable();
     base.OnDisable();
 }