Using Aspect Ratio constraint on a frame with {1, 0, 1, 0} size

I have a GUI with a base Background frame with sizing {1, 0, 1, 0} which contains all the other UI elements inside. However, when I try to use an Aspect Ratio constraint on that background frame, the UI elements have different positions across different devices even though I want to maintain a fullscreen sizing. The reasoning for the constraint is to maintain an equal size of the items within that background across all devices.

Regular UI size with constraint

UI size with constraint on a different device

How would I fix this issue?

You don’t need to add a constraint on the background, it just needs to be 1,0,1,0 size and its perfect :+1:

Wait, why would you need a aspect ratio constraint on the background? It is after all a background that is gonna fill the screen. Just set the size to (1,0,1,0)

1 Like

Yeah the items inside are scale and they appear differently in other devices

It shouldn’t do? I thought it would be 1,0,1,0 if parented directly under the ScreenGui

I meant the items inside the background frame, not the background

Ah, convert your UI contents position and size to Scale (the 1st and 3rd numbers of UDim2: {1,0,1,0})
I use a plugin to do this but you can easily change it to 1,0,1,0 and reposition :+1:

1 Like

Add the constraint on the button and not the background, that should fix the issue with the weird scaling