protected override void OnDisable()
{
base.OnDisable();
if (this.graphic != null)
{
this.graphic.SetMaterialDirty();
this.graphic.canvasRenderer.hasPopInstruction = false;
this.graphic.canvasRenderer.popMaterialCount = 0;
}
StencilMaterial.Remove(this.m_MaskMaterial);
this.m_MaskMaterial = null;
StencilMaterial.Remove(this.m_UnmaskMaterial);
this.m_UnmaskMaterial = null;
MaskUtilities.NotifyStencilStateChanged(this);
}