Search Unity

Question UI scaling is broken on first Game start but in editor fine

Discussion in 'UGUI & TextMesh Pro' started by sksdesign, Feb 10, 2024.

  1. sksdesign


    Jul 26, 2023
    Hey, my UI menu scaling is not working correctly when I build the game.

    In Editor and Game view everything seems perfect and scaling works well even when i hit play in editor.
    If I build game at the first start scaling in main menu is broken.
    When I "play" a scene and quit from this scene back to main menu the menu scaling works again.
    So only on first start before start a scene the ui scaling however isnt scaling as intended.

    Ive attached some sorted screenshots.

    What could be the reason?

    1 main menu at first start (broken scaling)
    2 game view (correct scaling)
    3 editor view (correct scaling)
    4 quit from scene back to main menu (back tin main menu its however correct again)
    5 mainmenu canvas inspector (reference resolution is overall: 1080p and match:1)

    Last edited: Feb 10, 2024