Search Issue Tracker
Active
Under Consideration for 2021.3.X, 2022.3.X
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|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
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
- Crash on EditorApplication:Internal_CallUpdateFunctions when pushing property block by index to SpriteShapeRenderer
Add comment