Search Issue Tracker
Fixed in 2019.3.X
Fixed in 2018.4.X, 2019.1.X, 2019.2.X
Votes
2
Found in
5.4.0f3
Issue ID
824304
Regression
No
Input.mousePosition returns incorrect value when using locked cursor
Reproduction steps:
1. Open the "bug.zip" project.
2. Open the "test" scene.
3. Play the scene.
4. Notice that the cursor is not centered.
Actual result: Cursor is offset 20 pixels from the center of the screen.
Expected result: Cursors is in the middle of a screen.
Note: Offset is around 12 pixels in the standalone build.
Reproduced on: 5.5.0a6, 5.4.0p2, 5.4.0f3, 5.3.6p3, 5.3.5f1
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
- [Dragon Crashers] Build fails in U6
- [Dragon Crashers] 4 Shader error messages on import
- [Dragon Crashers] Readme text is white on light grey
- Cursor stays in front of the first character when entering text in the TextMeshPro field
- Searching in Hierarchy causes unwanted component calls
SkedgyEdgy
Oct 28, 2018 19:50
This issue still occurs. It seems to be locking to the center of the window instead of the center of the viewport. In the editor, the offset is 20 pixels, and the title bar is 40 px tall. In the standalone, the title bar is 24 px tall, and the offset is 12 pixels. In fullscreen, when there is no title bar, there is no offset.