Why are my UI's squishing together

My gui looks good when in studio but as soon as i go to test it they squish together.
In studio:

In game:

When I click on them, it says they are in the same position, even though they obviously aren’t and one of them seems to shrink.

3 Likes

You’re probably making the size and position of your UIs using offset instead of scale, which doesn’t size them or position them appropriately based off of the size of a user’s screen. I don’t know much about GUI design, but I’d try reading this:

1 Like

Thank you but I think I’m doing that:

image

Might be wrong tho

2 Likes

I’d particularly recommend #help-and-feedback:art-design-support for asking for help for GUI design.

Related to what @charlestonial said, you can use plugins to change things from offset to scale too, like AutoScale.

3 Likes

Do you have some sort of AspectRatioConstraint inside of the buttons that are different from eachother, that could be making them size differently?

1 Like

They are all 2.4, so I don’t think thats the issue either

1 Like

Can you show us where the buttons are in the explorer tab? Just to see their parents, etc

1 Like

1 Like

The button will scale differently depending on the size of what it’s parented to, so if the “Content” frame it’s parented to are different sizes, the button will be a different size, and the same for “InvButtonDisplay” vs. “BackToMenu”. Is the “Button” the actual grey part, or is it one of the frames?

1 Like

The content is half the button and the back to menu frame is the other half of the button. By the way Ive done some more testing and its definatly to do with the size of the screen, they squish together or go far apart depending on the ratio of the screen

Edit: All of the frames under the parent frame are just set to {1,0,1,0} so they should just be the same size

1 Like

Try putting an aspect constraint in only the first frame of each button, and see what happens. Sorry if this is taking forever, I’m not the best at UI stuff.

1 Like

Thats made it much better, thank you very much for your help, in terms of the positioning looking better I think I will just have to put them under the same parent frame so that the distance between the buttons doesnt change that much

1 Like

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