- Home /
Clickable areas of UI buttons offset for standalone build
I am building for Mac at 1024x768 resolution. I have tried every combination of canvas/player settings, but no matter what I do, the build launches in fullscreen (with black bars to the left and right of the player window in order to preserve the aspect ratio). The canvas displays correctly, but the clickable area of UI elements seems to be offset according to the element's anchor. If an item is anchored to the left, for example, the clickable area is shifted several pixels to the left, meaning that clicking on the button itself triggers no event, but clicking to the left of the button does.
I see that this problem was encountered in previous versions (I am currently using 2020.1) and was reported fixed, but I am definitely encountering it now. Current settings are....
Canvas scaler: 1024x768, match width or height, match width (0), reference pixels per unity 100. Player settings: Windowed, 1024x768, not resizable window, allow fullscreen switch yes, supported aspect ratio 4:3
If it is completely possible I'm making some very obvious error, I would appreciate someone pointing it out! Thank you.