private void LateUpdate() { if (!m_editor.Input.GetPointer(MouseButton)) { if (m_pointerPressed) { m_pointerPressed = false; m_boxSelection.EndSelect(); } } if (!m_boxSelection.enabled) { return; } if (!m_boxSelection.IsWindowActive) { return; } if (m_editor.Tools.ActiveTool != null && m_editor.Tools.ActiveTool != m_boxSelection) { return; } if (m_editor.Input.GetPointerDown(MouseButton)) { m_pointerPressed = true; m_boxSelection.BeginSelect(); } }
private void LateUpdate() { if (!m_boxSelection.IsWindowActive) { return; } if (m_editor.Tools.ActiveTool != null && m_editor.Tools.ActiveTool != m_boxSelection) { return; } if (m_editor.Input.GetPointerDown(MouseButton)) { m_boxSelection.BeginSelect(); } else if (m_editor.Input.GetPointerUp(MouseButton)) { m_boxSelection.EndSelect(); } }