Search Issue Tracker

Fixed in 5.3.0

Votes

0

Found in

5.1.0p1

Issue ID

705997

Regression

No

[CursorLockMode.Confined] Dragging the game window causes the cursor to lose its confinement

Deployment Management

-

How to reproduce:
1. Create a new project
2. Add C# script which would have this in Start() function:
Cursor.lockState = CursorLockMode.Confined;
3. Make sure GameWindow is not set to Maximize on Play
4. Run it, notice that cursor locks in a window around it
5. Drag window a bit
6. Notice that cursor now loses its confinement

Add comment

Log in to post comment