private void OnInputMouseUpOnUi(int buttonID, Vector3 position) { if (buttonID == 1) { mouseSecondaryBtnPressed = false; freeCameraController.StopDetectingMovement(); } if (buttonID != 0) { return; } CheckEndBoundMultiselection(position); isMouseDragging = false; }
private void OnInputMouseUp(int buttonID, Vector3 position) { if (buttonID == 1) { mouseSecondaryBtnPressed = false; if (CanCancelAction(position)) { builderInWorldEntityHandler.CancelSelection(); } freeCameraController.StopDetectingMovement(); } if (buttonID != 0) { return; } EndDraggingSelectedEntities(); if (isSquareMultiSelectionInputActive && mouseMainBtnPressed) { if (Vector3.Distance(lastMousePosition, position) >= BuilderInWorldSettings.MOUSE_THRESHOLD_FOR_DRAG) { EndBoundMultiSelection(); } isSquareMultiSelectionInputActive = false; mouseMainBtnPressed = false; } outlinerController.SetOutlineCheckActive(true); isMouseDragging = false; }