When playing the game, UI is too big. The UI is scaled in "Scale" and not "Offset"

Whenever I try to play my game, the UI becomes to big or too wide. Is there a fix to this?

How it looks in Studio:

How it looks in-game for someone:

Any help is appriciated! Thank you!

2 Likes

It looks like you’re playing on an ultrawide monitor, or maybe you’ve just sized your window to be wider than the typical 16:9 aspect ratio. For most players on mobile, console, or PC the aspect ratio will be different, and the X scale will shrink to fit that.

However there are a few things you can do to update for wider displays:

  • Use UIAspectRatioConstraint to keep items fixed at a certain width:height ratio, regardless of viewport
  • You could try making a custom script that resizes certain UI elements based on viewport size. This is usually if you have problems with Strokes, Paddings, or other Offset related elements resizing incorrectly.
1 Like