void OnDestroy() { if (m_CurvePresets != null) { m_CurvePresets.GetPresetLibraryEditor().UnloadUsedLibraries(); } }