UPDATE: This turn out to be a bug with unity. If you would like to help get this fixed, please vote here.
Hello all,
I am having a weird bug that I am not sure how to solve. When I make the window too wide, the ui starts acting weird. The colliders for buttons are no longer over the buttons themselves and are now off.
What it looks like is happening is the ui colliders are thinking the resolution is different than what the actual resolution is. Anyone have any idea on where to start fixing something like this?
- how to recreate:
- Unity 2021.3.6f1
- new project
- add tmpro button
- import basic tmpro assets
- move the button to the top right of canvas and anchor to that corner
- set the colors (normal color, highlighted color, etc) to different colors so it is easy to see.
- edit -> project settings -> player->resolution and presentation
- fullscreen mode: windowed
- Width height: 800, 600
- resizable window = checked
- build game as release build
- stretch screen nice and wide
- mouse over button. none or only part of the button should be selectable.
Unity 2021.3.6f1
windows 10
built on wide screen monitor
Edit: Made a test project. In the build, increase the width of the window nice and wide and you should start to see it.