Search Issue Tracker
Duplicate
Votes
0
Found in
5.4.2f2
Issue ID
852767
Regression
No
Setting Cursor.lockState from Locked to CursorLockMode.None, returns uncentered pointer
Reproduction steps:
1. Open attached project (Cursor.zip)
2. Open "3D Objects" scene
3. Hit play
4. Press "space" to lock the cursor
5. Press "space" again to unlock the cursor
Expected result:
Cursor is centered (points to red small cube)
Actual result:
Cursor is above screen center
Note:
5.4/5.5b documentation states: "When locked, the cursor will automatically be centered on view", hence it should appear centered when unlocked.
Reproduced on 5.2.5f1, 5.3.3f1, 5.4.3p1, 5.5.0f1, 5.6.0a3
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
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
This is a duplicate of issue #857999