Example #1
0
        /// <inheritdoc />
        public override void OnDestroy()
        {
            _debugDrawData.Dispose();
            FlaxEngine.Object.Destroy(ref SelectionOutline);

            base.OnDestroy();
        }
Example #2
0
        /// <inheritdoc />
        public override void OnDestroy()
        {
            if (IsDisposing)
            {
                return;
            }

            DisposeModes();
            _debugDrawData.Dispose();
            FlaxEngine.Object.Destroy(ref SelectionOutline);
            FlaxEngine.Object.Destroy(ref EditorPrimitives);

            base.OnDestroy();
        }