GUI Size problem

Hello, I have a small problem on my game.

  1. What do I want to achieve? My GUI size changes when I am not on full screen. When I am on full screen, I have a button and he is 100x100 pixels but when I disable full screen the button changes and he is like 90x100.

  2. What is the issue? The problem is I want this button square.

Images
Full Screen


As you can see, the button down on the middle of the screen is square.

Not Full Screen


As you can see, the button down on the middle of the screen isn’t prefectly square.

  1. What solutions I tried so far? I tried looking on the forum and videos but I didn’t find anything.

If someone could find anything about this, that’s gonna be really helpful. Have a good day :wave:

You will need to add a UIAspectRatioConstraint to the button you need to stay square.

1 Like

Thanks, I will try it and I will tell you if it works