- Home /
WarpCursorPosition is locking the cursor for a split of a second?
Hi folks,
I am working on the following functionality.
I set the cursor visibility to false while holding the right or left mouse key and store the last position where the cursor was visible.
On the release of the left/right key, I move the cursor to the last visible position and set visibility back to true, with
Mouse.current.WarpCursorPosition(lastCursorPosition);
Cursor.visible = true;
This works great, but the cursor freezes for a few milliseconds while I am moving the mouse. The movement is not as fluid as you would expect.
Please see the attached video and notice that when the cursor re-appears, it takes a little time until it catches up and continues in the movement of the mouse.
https://www.youtube.com/watch?v=Cmuu3o1eESw
I really appreciate any help you can provide.
Cheers.
Your answer
Follow this Question
Related Questions
Help In Making a SphereCast for 3D Tire! Working RayCast Script included! 0 Answers
Cursor.SetCursor() : CursorMode.ForceSoftware do not working in new InputSystem. 1 Answer
Disabling Mouse Look with Escape wont work? 1 Answer
Add Cursor (Top-Down-Shooter) 1 Answer
Continual in-game directional cursor movement help 0 Answers