UnityEditor.Brush.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( ) : void
return void
        public void Dispose()
        {
            if (this.m_BrushProjector != null)
            {
                Object.DestroyImmediate(this.m_BrushProjector.gameObject);
                this.m_BrushProjector = null;
            }
            Object.DestroyImmediate(this.m_Preview);
            this.m_Preview = null;
        }