Search Issue Tracker
Duplicate
Votes
0
Found in
2020.3.0f1
2021.1.0b9
2021.2.0a6
Issue ID
1321495
Regression
Yes
CursorLockMode.Locked doesn't lock the cursor when entering the Play Mode after the first time
How to reproduce:
1. Open the user's attached "CursorTest" project
2. Open the Scene "SampleScene"
3. Enter the Play Mode
4. Exit the Play Mode
5. Enter the Play Mode
6. Move your mouse around (try to hover over GameObjects in the Hierarchy, move it out of the Editor window)
Expected results: The cursor is locked
Actual results: The cursor is not locked
Reproducible with: 2020.3.0f1, 2020.3.0f1, 2021.1.0b9, 2021.1.0f1, 2021.2.0a6
Not reproducible with: 2018.4.33f1, 2019.4.22f1, 2020.2.7f1, 2021.1.0a1, 2021.1.0b8, 2021.2.0a1, 2021.2.0a5
Notes:
- The cursor will become invisible
- As a temporary workaround it's possible to press Esc and press on the Game view, this will lock the mouse
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
- Script resets to use the previous Skybox color when saving the Scene changes
- [2D] Sprite Library Editor window throws NullReferenceException error when entering Play Mode with Game View maximised
- Game View Tab Scale changes erratically when a Unity Tab is on a different screen with a differing Display Scale
- Six way lighting receiving wrong lighting from APV when set to World Space
- Crash on SortByExecutionOrder when interrupting the .androidpack import process
This is a duplicate of issue #1302708