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
Comments (1)
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
- [Android][BiRP] Depth processing is handled incorrectly on certain Android devices when using 2 camera's
- [APV] Cancelling Display Dialog Error is thrown after Adaptive Probe Volumes tab is open in Lighting Window
- [APV] NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
- "OnTriggerExit2D" is called before "OnTriggerEnter2D" when object is destroyed immediately
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.