UnityEditor.BillboardAssetInspector.OnDisable C# (CSharp) Method

OnDisable() private method

private OnDisable ( ) : void
return void
        private void OnDisable()
        {
            if (this.m_PreviewUtility != null)
            {
                this.m_PreviewUtility.Cleanup();
                this.m_PreviewUtility = null;
                UnityEngine.Object.DestroyImmediate(this.m_ShadedMesh, true);
                UnityEngine.Object.DestroyImmediate(this.m_GeometryMesh, true);
                this.m_GeometryMaterial = null;
                if (this.m_WireframeMaterial != null)
                {
                    UnityEngine.Object.DestroyImmediate(this.m_WireframeMaterial, true);
                }
            }
        }