Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug UI Toolkit live game view incorrect on aspect ratios wider than 16:9

Discussion in 'UI Toolkit' started by Thimo_, Jul 2, 2022.

  1. Thimo_

    Thimo_

    Joined:
    Aug 26, 2019
    Posts:
    59
    In UI builder I made a layout for my 1920 x 1080 screen. The UI Builder shows exactly the way I want it. If I have Unty open on a full HD monitor everything in the game view looks as expected. However, I use unity on a 49 inch (5160 x 1440) resolution, I also had the same issues when working on a 29 inch (2560 x 1080) monitor.

    Reproduce Unity version:

    2022.1.6f
    2022.1.7f

    Correct view in gameview fhd monitor.PNG View as created in UI builder.PNG Wrong view in gameview ultrawide monitor.PNG Correct view in gameview fhd monitor.PNG View as created in UI builder.PNG Wrong view in gameview ultrawide monitor.PNG
     
  2. ccfoo242

    ccfoo242

    Joined:
    Oct 9, 2014
    Posts:
    85
    The Match Game View option only seems to resize the document to whatever the current game size is when editing the document. The Panel Settings-> Scale Mode needs to be set, I think, to Scale With Screen Size.

    But, you're going to have a problem with resolutions that are too wide or too narrow, but I don't have a good suggestion for how to deal with that.