Search Issue Tracker
Fixed in 2022.1.X
Votes
0
Found in
2019.4
2020.3
2020.3.0f1
2021.1
2021.2
Issue ID
1327962
Regression
No
[Input System] Mouse position does not immediately lock to the center of the screen after setting Cursor.lockState to Locked
How to reproduce:
1. Open the attached project "MouseLockStateBug.zip"
2. Open SampleScene
3. Click Play
4. Click on the Game View
5. Move the mouse to one of the corners of the Game View
6. Click Space
7. Observe Position values printed to the Console
Expected result: The coordinates of the center of the Screen are printed
Actual result: The coordinates of the Cursor before the Lock are printed
Reproducible with: 1.0.0 - 1.1.0-preview.3 (2019.4.24f1, 2020.3.5f1, 2021.1.4f1, 2021.2.0a15)
Notes:
1. If you move the mouse after step 7 the correct coordinates will be printed
Comments (1)
-
oobartez
Oct 13, 2021 14:18
We just tested 2021.2.0b7 and the problem is still present, nothing has changed, despite the issue being marked as fixed in 2022.1.0a6. Would you be able to double check if it has been fixed?
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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0a6