Exception raised when Shift+dragging under the new Input System
Issue #185
resolved
Dragging of the console window does not work under the new Input System, because the code in DraggableUI.cs uses Input.mousePosition
(around line 40) - which throws an exception each frame that a drag is attempted. The correct code under new Input System should be (I think) Mouse.current.position.ReadValue()
, which should be a drop-in replacement.
I couldn’t find any other use of Input.*
in the code, but there may be other examples of this potentially!
Comments (2)
-
reporter -
repo owner - changed status to resolved
Thanks! This is now fixed in V2.6.0
- Log in to comment
In case it helps, here’s how I fixed it locally…
Add this to
InputHelper.cs
:and change
DraggableUI.cs
, line 40 to read:Vector2 pos = InputHelper.GetMousePosition();