UnityEngine.UI.Mask.OnValidate C# (CSharp) Method

OnValidate() protected method

protected OnValidate ( ) : void
return void
        protected override void OnValidate()
        {
            base.OnValidate();
            if (this.IsActive())
            {
                if (this.graphic != null)
                {
                    this.graphic.SetMaterialDirty();
                }
                MaskUtilities.NotifyStencilStateChanged(this);
            }
        }