Search Issue Tracker

Fixed in 5.2.0

Votes

36

Found in

5.1.2f1

Issue ID

715666

Regression

No

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

Input

-

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 (20)

  1. Fattie

    Jul 13, 2020 01:25

    This is STILL not fixed in 2020. What the heck ?

  2. d0p3fish

    Oct 24, 2016 22:24

    Same Problem on Unity 5.4.2f2 Fullscreen Mode at Mac

  3. hitmax87

    May 27, 2016 18:46

    Bug steel here, in new version!

  4. Jill Chang

    May 23, 2016 09:30

    Same problem here!!!

  5. Djamahl

    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.

  6. Djamahl

    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.

    https://www.dropbox.com/s/0k03ub4hl4j476r/ButtonUI.unitypackage?dl=0

  7. Hodgson_SDAS

    Apr 12, 2016 14:27

    This bug did not get rolled into 4.x?

  8. winterkewl

    Mar 31, 2016 17:15

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

  9. SujitKadam

    Mar 04, 2016 06:38

    same problem with Unity 5.3

  10. kallelandell

    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.

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.