Search Issue Tracker
Fixed in 2020.3.39f1
Fixed in 2020.3.X, 2021.3.X, 2022.1.X, 2022.2.X, 2023.1.X, 2023.1.0a6
Votes
16
Found in
2020.3.36f1
2021.3.6f1
2022.1.8f1
2022.2.0a19
2023.1.0a2
Issue ID
UUM-7893
Regression
Yes
Broken mouse pointer input coordinates in GraphicRaycaster for certain window sizes in Build when run in windowed mode
How to reproduce:
1. Open the attached project "CanvasBrokenRaycastRepro.zip"
2. Open Assets/Launch.unity
3. Build And Run the project
4. Increase the width of the Player window so that it's more than double the height of the window
5. Hover over to any of the rightmost "Button" with the mouse
Expected results: The "Button" which the mouse is hovering over is highlighted
Actual results: The "Button" which the mouse is hovering over is not highlighted
Reproducible with: 2020.3.36f1, 2021.3.6f1, 2022.1.8f1, 2022.2.0a19, 2023.1.0a2
Reproducible on: Windows 10
Comments (2)
-
Darren-R
Oct 13, 2023 15:50
I have just encountered this bug in 2019.4.40f1 LTS (latest) It was NOT an issue in 2019.4.16f1 LTS.
-
kappel_unity
Nov 03, 2022 16:52
I am also hitting this bug in 2020.3.38f1, and removed UGUI from the project via package manager before importing the package to the project.
However, after updating MultipleDisplayUtilities.cs I am still seeing incorrect raycasting on various windowed display resolutions/aspect ratios.
Have I applied the fix incorrectly? Are there more detailed instructions on how to apply this fix properly?
Thank you!
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
karl_jones
Jul 21, 2022
A fix is on the way. You can work around the issue now by moving the UGUI package from the PackageCache folder into the projects Packages folder. Then replace the file MyProject\Packages\com.unity.ugui\Runtime\UI\Core\MultipleDisplayUtilities.cs with this one https://gist.github.com/karljj1/e333a7a3f192a5d264d95bfbaff0fde8