/// <inheritdoc /> public override void OnDestroy() { _debugDrawData.Dispose(); FlaxEngine.Object.Destroy(ref SelectionOutline); base.OnDestroy(); }
/// <inheritdoc /> public override void OnDestroy() { if (IsDisposing) { return; } DisposeModes(); _debugDrawData.Dispose(); FlaxEngine.Object.Destroy(ref SelectionOutline); FlaxEngine.Object.Destroy(ref EditorPrimitives); base.OnDestroy(); }