Author Topic: GUI not scaling based based on screen size (looks very small on larger screens)  (Read 4546 times)

1337GameDev

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 13
    • View Profile
In the editor, I am designing my UI, and it doesn't seem to scale when I have "Maximize on play" selected, and fear it won't scale on my target device sizes then too.

The Scaling Style is set to Flexible and I have set up anchors...

What do I have to do to have things scale?
Does it matter if I have subpanels under the main panel for my UI?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Flexible = whatever the size of your game window is what will be used.

If you want it to scale, use Constrained.

1337GameDev

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 13
    • View Profile
I tried that, and it seems to scale the entire UI as one unit, so on desktop, if you change the width, the entire ui scales smaller (including elements that are supposed to be anchored to the top of the screen).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Constrained = fixed size. If something was 1/3rd of the screen at 1080p, it will still be 1/3rd of the screen at 360p. Width doesn't affect it unless you change what it's constrained by.