Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Resolved The UI is not scaling properly when I build the game, but in the editor it works fine.

Discussion in 'UGUI & TextMesh Pro' started by Johnscaban, Sep 20, 2021.

  1. Johnscaban

    Johnscaban

    Joined:
    May 9, 2020
    Posts:
    23
    In the editor, my screen works perfectly fine, but when I build the game for Windows (standalone) it doesn't work. Am I doing something wrong or is this a Unity bug? The first screenshot is of the inspector and the second one is the screenshot of the already built game.
     

    Attached Files:

  2. Johnscaban

    Johnscaban

    Joined:
    May 9, 2020
    Posts:
    23
    I fixed it! It was just that when anchoring the different screens, I needed to use the Rect Tool's expand function by holding ALT and selecting it.