Ui buttons get bigger in full screen

my ui buttons in my game get bigger when i go in fullscreen. they’re scaled but they have a uiaspectratio on them so that might be it and if i take it off then the buttons get stretched on other screens even though they are scaled. here is a video:


also here are what my buttons look like:
image

2 Likes

Try using Offset to resize them, instead of Scale. Offset ignores display resolution and scales based on pixel density, whereas Scale is a normalised value relative to the display resolution, which means it changes size when the window’s size is changed.

do you mean make it offset and resize it to fit fullscreen and scale it again? i did that and it worked but i forgot to mention it is smaller on mobile in the original post. it looked like this:


that was after i changed it though but it was like that

Use UISizeConstraint to limit the maximum and minimum size of the buttons.

1 Like

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