Search Issue Tracker
Fixed in 2019.3.X
Votes
1
Found in
2017.4.0f1
2018.4.0f1
2019.1.0a1
2019.2.0a1
2019.3.0a1
Issue ID
1168258
Regression
No
[Linux] Can't get back the cursor if it's locked and hidden while in play mode
To reproduce:
1) Create a new project
2) Create a new script
3) Add the following to Start:
Cursor.visible = false;
Cursor.lockState = CursorLockMode.Locked;
4) Attach the script to any object
5) Play it
6) Click ESC
Expected (Seen on Win 10): Cursor is revealed and free
Actual (Seen on Linux): Cursor is still hidden and locked
Reproduced in 2017.4.0f1, 2019.3.0a8
-
alex-av
Aug 21, 2019 12:00
I like this linux behaviour! when cursor kept locked on hit Escape
I hate windows behaviour! then hit Escape detach cursor that should be kept locked by game logic. I have tons of #ifdef to make debug play-in-editor somehow less annoying.I suppose there are should be option in Editor Preferences to choose behaviour and/or set hot key for cursor detach
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (fix version 2019.3):
Fixed issue preventing hotkeys working when in Linux editor when a scene is playing, especially when the cursor is locked.