Frame changes size when the size of my screen changes

My UI does this when I my screen changes size


https://gyazo.com/517e2a3a4f1008b6e5950d579e5ba616

Things I’ve tried:

Enabling IgnoreGuilnset
UIAspectRatioConstraint

You can use the AutoScale Lite plugin and this will make sure that it stays the correct size whenever the screen size changes.

Model:

Documentation:

I’ve already used this plugin, doesn’t fix it :frowning:

I see that you’re using the UIAspectRatioConstraint, and I know you’ve tried it, but have you tried deleting it altogether? I know it sounds stupid, but I’ve had the exact same issue and the fix is deleting the UIAspectRatioConstraint.

1 Like

UIAspectRatio is the one locking it into the same ratio, try deleting it and just make the frame size in X (1, 0) so it stretches the width of the screen

Like @FloofyNezzled has said this is linked to the UIAspectRatioConstraint.
This is also behaviour I would expect.
Removing it and setting the sizes manually, then setting a UISizeConstraint to fix the min and max sizes in X and Y might be the simplest method. (Easiest to see what will happen)
If you are determined to use the UiAspectRatioConsteaint, it may be possible to do the same by changing the dominant axis and fit withinparent properties.o

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.