Search Issue Tracker
Fixed in 2020.1.X
Fixed in 2019.3.X
Votes
4
Found in
2017.2.0f3
2017.4
2018.4
2019.2
2019.3
2020.1
Issue ID
978868
Regression
No
Cursor not locked within game window bounds when using CursorLockMode.Confined
How to reproduce:
1. Open "ConfinedMouseRepro" project
2. Build for standalone (make sure that "Default" scene is included)
3. Run built project in windowed mode
4. Move the cursor to the top side of the game window
Expected results: Mouse cursor should stay in game window bounds, where the game is happening.
Actual results: Mouse cursor leaves bounds and can be clicked on game window's top panel.
Reproduced with: 2017.4.36f1, 2018.4.16f1, 2019.2.19f1, 2019.3.0f6, 2020.1.0a21
Comments (1)
-
Twitwi
Jul 31, 2018 17:24
I've written about this on the forums back in 2015
https://forum.unity.com/threads/cursorlockmode-confined-is-doing-it-wrong.348954/The post has a few gifs explaining the issue and a workaround that can be used until this is fixed.
And for the record this is can also be reproduced in 2017.4.4f1
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android][BiRP] Depth processing is handled incorrectly on certain Android devices when using 2 camera's
- [APV] Cancelling Display Dialog Error is thrown after Adaptive Probe Volumes tab is open in Lighting Window
- [APV] NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
- "OnTriggerExit2D" is called before "OnTriggerEnter2D" when object is destroyed immediately
Resolution Note (fix version 2019.3):
Fixed with 2019.3.8f1 (dc786b1a6d14)