Mouse cursor is a few centimeters to the left from what it clicks. In included screenshot, I'm actually clicking that button, which I know because the color changed to red, even though mouse is nowhere close.
Yeah, I get the same. Off to the left in both the new UI and screenraycast hit collisions with rect colliders. It's proportional to the screen size too. If I choose Maximise on Play, then I have to hit the moles in my whack-a-mole game further to the left than without. Using: ScreenPointToRay(Input.mousePosition); Ubuntu 14.04 Cheers
Yeah same here with new GUI system. It's off by quite a lot! Mint 17.2 here. Love that we can even try this btw So happy!!
OK, so I found out what is the problem, but no solution. See attached pic. The gap on the left is how far off the mouse is. [EDIT] I drew the pic wrong. The gap is on the right side of the button. But it should convey the problem OK
I'm also facing this problem in the 20150915 build: In the EventSystem you can see the mouse position and that it's triggering the button. Judging from my layout setup and the others, I believe the mouse position is being calculated from Screen's Bottom-Left corner, and Unity is using that raw position instead of using the mouse offset from the game view's bottom-left corner.
It looks like some calculations involving the game view rect may not be compensating for the letterboxing to enforce the aspect ratio. If this is the case, you should be able to work around by choosing free aspect or by resizing your game view to a matching aspect ratio. In any case, we'll investigate.
Solution for this: Make the game window be same size as the actual game in the window. Somehow the difference makes the offset. The more empty space makes more offset.
Same problem here, it only happens in Editor mode. In any other Player or build it works, no matter the resolution. Also, when choosing "Free aspect" it works too.
This should be fixed in the 20160106 build - if it's still offset in some situations with this build, please provide precise repro steps, and we'll continue investigating.
I have this problem on win 11 on Unity 2020.3.30 only in the scene menu of the Lighting settings. In the, for example, environment menu it's ok. No problem with 2021.2.15