Keep aspect ratio

How can i keep the same layout without having it squished or moved if the screen size changes?

image
image

i already put aspect ratiio into the textlabels but it didnt work

2 Likes

You will need them to have a constant size and constant offset from the bottom-right. You can do this by changing their size to only use an Offset. You need to position them by setting the scale of the position UDim2 to (1, 1) so the top-left corner of the TextLabel is off screen. You can then position them so they are where you want them to be. You should set the ScreenGui safe insets to none to ensure it won’t look different in game than it does in Studio.

they do have all that but they still resize

You don’t need the aspect ratio constraint. You can do it without it.

how do i do that. i also have these tiny gaps between the frames so ima use listlayout

I described how in my post. If you use list layout just do this but for the parent container

SO i put a uisizeeconstraint into the parent right?

No. You use the Size and Position properties of the Frame.

image
NOW IF I RESIZE THE VIEWPORT THE FRAME LEAVES THE SCREEN.

if what constraindt do i need to put into the f rame?

You don’t need any constraints. You can do it with Position and Size.

Are you using the Position and Size as Scale and not offset?

yes.
ccharacterminimumrequirement

actually nevermind ill wait for my GUI designer to return. i just cant do it. im scripter

You could just create a frame and use something like UIListLayout on the horizontal settings

I was able to achieve it using this hierarchy.
image

image
The important part is the screen insets. I don’t know about the safe area options. I think they only affect mobile.


This is what it looks like…

And with resized viewport:

Just make your anchor point, 0.5, 0.5 and then everything will be fixed.