How to keep GUI object the same shape no matter what screen size

I have my gui frame with a width of 440 and a height of 330.


Basically I want it to stay the same shape when the screen changes sizes. So if the height goes down by 10 then the width also goes down by 10 and so on.

Use “Scale” instead of “Offset” to adjust the size.

no because then it doesn’t stay the same shape and it will get stretched

Scale your frame on position and size, THEN add a UIAspectRatioConstraint with AspectType set to FitWithinMaxSize and DominantAxis to Width (I also use a plugin for this called AutoScale Lite).

2 Likes

The UIAspectRatioConstraint might be what you are looking for. Add it to any UI element to make the shape stay in what you want it to be.