Search Issue Tracker
Fixed
Fixed in 6000.0.54f1
Votes
0
Found in
2021.3.45f1
2022.3.51f1
Issue ID
UUM-85853
Regression
No
Mouse pointer remains visible on-screen when Cursor.lockState is set to CursorLockMode.Locked and Cursor.visible gets set to true in Update
How to reproduce:
1. Open the attached "IN-87477" project
2. Open the "SampleScene"
3. Enter Play mode
4. Click somewhere inside the Game window
5. Observe the cursor visibility
Expected result: The cursor becomes invisible after the Game window gains focus
Actual result: The cursor remains visible even when the Game window gains focus
Reproducible in: 2021.3.45f1, 2022.3.51f1, 2023.3.0b10
Not reproducible in: 6000.0.24f1, 6000.1.0a2
Fixed in: 6000.0.0b11
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Notes:
• The official Unity documentation states that "The cursor is invisible in Locked] state, regardless of the value of Cursor.visible," which contradicts the observed behavior (See [https://docs.unity3d.com/ScriptReference/Cursor-lockState.html)
• The bug persists in both Editor and built applications
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
- Crash with “Fatal Error! The file ‘MemoryStream’ is corrupted!” when adding a large number in Font Character Rects Size field
Add comment