UnityEditor.ModelInspector.OnDestroy C# (CSharp) Method

OnDestroy() public method

public OnDestroy ( ) : void
return void
        public void OnDestroy()
        {
            if (this.m_PreviewUtility != null)
            {
                this.m_PreviewUtility.Cleanup();
                this.m_PreviewUtility = null;
            }
            if (this.m_WireMaterial != null)
            {
                Object.DestroyImmediate(this.m_WireMaterial, true);
            }
        }