UI Constraint Not Working

so as the title UI Constraint aint working the way i thought it should, maybe im doing something wrong? here’s a gif, wat i want is for the buttons&text to scale with the screen, it works fine on the other UIs
https://gyazo.com/7687181209014b77e6a23d908f5e928a

1 Like

It appears your blue window is sized by scale, but your other buttons are sized dimensionally with a fixed size.
You may want to try scaling the buttons as well.

1 Like

Do u mean by adding a ratio constraint to the buttons? But i did, or thats not wat u mean? Should i change the buttons’ constraints to size constraints? If thats so but why it works for the other UIs with ratio constraints?

1 Like

Make sure the buttons are scaled correctly. Your size property probably looks like this:

grafik

but has to look like this:

grafik

The offset values have to be 0 as they scale the UIs in pixels and not relative to its parent.

grafik

You don’t have to put an UIAspectRatioConstraint into every single button. You just need to put one in the children of you ScreenGui not in its descendants.

3 Likes

I had this same problem with scrolling frame and stuff, I used a UIGridLayout like you and turn the things offset because the frames would be squish if it was scale, I used a auto scale plugin and it add a UIAspectRatio into the ScrollingFrame. it was still not working like yours so I did some things and the x was offset so I just randomly changed x to scale and keep y to offset in the UIGridLayout and it worked perfectly(With the UIAspectRatio).

1 Like