Window mode overlay canvas wrong pointer position

When using overlay canvases with canvas scaler set to “Scale With Screen Size” and screen match mode set to “Expand” in 2022.2.0a9 and having the window framed windowed mode and free format resolutions (for example using maximized window with the taskbar enabled which gives something like 1920x1009), makes the rightmost part of the canvas to track incorrectly the mouse position when hovering and clicking over objects (like buttons and images). This issue is not present on the current 2021.2.19f1. Also it does not happens on editor, only on builds (tested with IL2CPP builds using URP 14)

2 Likes

Sounds like this issue: Unity Issue Tracker - Broken mouse pointer input coordinates in GraphicRaycaster for certain window sizes in Build when run in windowed mode

Fixed in 2020.3.39f1, 2021.3.9f1, 2022.1.15f1, 2022.2.0b7, 2023.1.0a6