UnityEditor.ColorPresetLibrary.OnDestroy C# (CSharp) Method

OnDestroy() private method

private OnDestroy ( ) : void
return void
        private void OnDestroy()
        {
            if (this.m_ColorSwatch != null)
            {
                Object.DestroyImmediate(this.m_ColorSwatch);
            }
            if (this.m_ColorSwatchTriangular != null)
            {
                Object.DestroyImmediate(this.m_ColorSwatchTriangular);
            }
            if (this.m_MiniColorSwatchTriangular != null)
            {
                Object.DestroyImmediate(this.m_MiniColorSwatchTriangular);
            }
            if (this.m_CheckerBoard != null)
            {
                Object.DestroyImmediate(this.m_CheckerBoard);
            }
        }