Search Issue Tracker
By Design
Votes
1
Found in
2018.4
2019.4
2020.3
2021.1
2021.2
2021.2.0a16
Issue ID
1338147
Regression
No
Cursor.visible equals True, while the cursor is invisible when entering Game View after unfocusing it
Reproduction steps:
1. Open user's project "Cursor bug report.zip"
2. Open "SampleScene" Scene
3. Enter Play Mode and click anywhere in the Game View
4. Notice how the console is logging out "Cursor visible:False, lockState:Locked" and the cursor is invisible
5. Press Esc to unfocus from the Game View, notice how the cursor is visible and the console is logging out "Cursor visible:True, lockState:Locked"
6. Press anywhere in the Game View again
Expected result: Cursor is invisible and the console logs out "Cursor visible:False, lockState:Locked" when entering Game View again
Actual result: Cursor is invisible while the console logs out "Cursor visible:True, lockState:Locked" when entering Game View again
Reproducible with: 2018.4.35f1, 2019.4.27f1, 2020.3.11f1, 2021.1.9f1, 2021.2.0a18
Reproducible on macOS and Windows
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
- 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
Resolution Note (2021.2.X):
This behavior is by design. As stated in the Cursor.visible documentation, "Set [Cursor.visible] to true to reveal the cursor. Set it to false to hide the cursor. Note that in CursorLockMode.Locked mode, the cursor is invisible regardless of the value of this property."
The user report requests "a more clear way to identify whether user pressed escape and gameview lost focus", this may be considered as a feature in the future.