Search Issue Tracker

Fixed in 5.2.0



Found in


Issue ID




[Full-Screen] Input.mousePosition output does not match the displayed view on the screen



To reproduce the bug follow the steps
1. Open "InputMousePosition" project
2. Open "Test" scene
3. Build & Run
4. Select resolution that is different from Home Resolution of your computer screen
5. Press Play

Unity 5.1.X:

Input.mousePosition will return values that are out of the screen coordinates. User used workaround to get correct position of the mouse.

Unity 5.2.X (black boarders):
Input.mousePosition zero coordinates starts from bottom of black boarders, also input ratio does not fit the graphical view ratio.

Comments (19)

  1. 34fe6bfb7c49bfce77f0b571de5461ad?d=mm


    Oct 24, 2016 22:24

    Same Problem on Unity 5.4.2f2 Fullscreen Mode at Mac

  2. 2b758e480941f41873cfb6aa640065bf?d=mm


    May 27, 2016 18:46

    Bug steel here, in new version!

  3. A2e3e6dd4210faa6abd79921fa10bb4a?d=mm

    Jill Chang

    May 23, 2016 09:30

    Same problem here!!!

  4. 58e81a18bf59c3a3e2ef6b68204d2e67?d=mm


    May 11, 2016 18:17

    BTW, we were able to repro in a standalone deployment, but our primary concern is Android/iOS where tap precision is less precise.

  5. 58e81a18bf59c3a3e2ef6b68204d2e67?d=mm


    May 10, 2016 18:49

    We're experiencing this issue on 5.3.1p3. Initially we thought some of our custom code was causing this, but we've constantly been able to reproduce this in a blank project with buttons with offset. We've used precision styluses to ensure the expected input locations are accurate and see that the issue is definitely not fixed.

    I have a test project I can provide to show this problem clearly with debug visualization added.

  6. 36d6391db7aa230fab6b8e1ace13a0bd?d=mm


    Apr 12, 2016 14:27

    This bug did not get rolled into 4.x?

  7. 919dfcb032e623eda0554d17a6071a1f?d=mm


    Mar 31, 2016 17:15

    This issue is marked fixed, but it's still happening to me in 5.3.2.f1

  8. 67d809aaf06f38e98f189fb14ca6e0eb?d=mm


    Mar 04, 2016 06:38

    same problem with Unity 5.3

  9. B0e0b9ecb22d914589e0ad7042c09073?d=mm


    Dec 23, 2015 19:21

    I have problems with some buttons on my 2nd scene, but not in the first. One important differance between the scenes is that in the first scene I add the buttons from the start, but in the second I add them after a while. In the first scene they are far to the left on screen, in the second they are close to the middle. If I click a bit to the right of the buttons in the scene where they are not working, I pop out of fullscreen mode.

    Unity Version is 5.3.0f4.

  10. 32028c77d8ce853efeb01a8a9c0e9796?d=mm


    Nov 20, 2015 16:35

    Same here - unity 5.2.2f1 on Linux - for fullscreen 1920x1080 coordinates are from X:0 Y:-120,1235 (left-bottom corner) to X:1919 Y:1080 (top-right corner).
    Screenshot of button being clicked while mouse is not above it:

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.