public override void OnSceneViewGUI(SceneView sceneView)
        {
            bool remove = (
                (RemoveOnKeyEscape && Manager.KeyEscapeDown) ||
                (RemoveOnCameraControl && Manager.IsCameraControl) ||
                (RemoveOnClickMiss && WindowIsActive && Manager.LeftMouseClick && !SceneViewWindow.GetWindowData(OnWindowGUI).Contains(Event.current.mousePosition))
                );

            if (remove)
            {
                PerformRemoveFromParent();
            }
            else if (m_selected != null)
            {
                OnSelect(m_selected.Object);
                PerformRemoveFromParent();
            }
        }