Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: 1337GameDev on July 02, 2015, 03:13:57 PM

Title: GUI not scaling based based on screen size (looks very small on larger screens)
Post by: 1337GameDev on July 02, 2015, 03:13:57 PM
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?
Title: Re: GUI not scaling based based on screen size (looks very small on larger screens)
Post by: ArenMook on July 02, 2015, 09:05:23 PM
Flexible = whatever the size of your game window is what will be used.

If you want it to scale, use Constrained.
Title: Re: GUI not scaling based based on screen size (looks very small on larger screens)
Post by: 1337GameDev on July 03, 2015, 12:20:05 PM
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).
Title: Re: GUI not scaling based based on screen size (looks very small on larger screens)
Post by: ArenMook on July 06, 2015, 07:50:33 PM
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.