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
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
Add comment