private void OnDestroy() { AssetImporterInspector activeEditor = this.activeEditor; if (activeEditor != null) { this.m_ActiveEditor = null; Object.DestroyImmediate(activeEditor); } }