Search Unity

Bug Unity UI Bug at Wider Resolutions Not sure if just me.

Discussion in 'UGUI & TextMesh Pro' started by shooshmashta, Jul 13, 2022.

  1. shooshmashta

    shooshmashta

    Joined:
    Mar 8, 2015
    Posts:
    4
    UPDATE: This is a bug with unity. If you want to help get this fixed, please vote.

    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.

    Link to video

    What I think is happening:


    > Unity 2021.3.6f1
    > windows 10
    > built on wide screen monitor

    Link to Test project

    In the build, increase the width of the window nice and wide and you should start to see it.
     
    Last edited: Jul 20, 2022
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,292
  3. shooshmashta

    shooshmashta

    Joined:
    Mar 8, 2015
    Posts:
    4
  4. shooshmashta

    shooshmashta

    Joined:
    Mar 8, 2015
    Posts:
    4