How to Fix Stretched UI

I’ve made some simple UI and used the plugin AutoScale Lite’s Unit conversion to convert the offset UI to scale UI, although when I play my game or move around studio docks the UI still gets very strecthed. I’m not familiar with UI and would like to know how to fix this.

Normal
image
In game or when moving studio docks


image
I’m not sure if this requires any scripts to constantly updates it’s size or position, but for example, when I make a square it turns into almost a rectangle for any other device. But in other games their UI’s shape and size is the same across all devices

Use a Size Constraint.

Use auto scale lite plugin it should fix that

I’ve made some simple UI and used the plugin AutoScale Lite’s Unit conversion to convert the offset UI to scale UI,

He has already done that.

It works for size, although this happens when I move docks far (I’m not sure if this will never happen in a real sicario because screens probably don’t go that far but im just making sure

image

Sorry. Use a UIAspectRatioConstraint instead.

2 Likes

Again, works for size although buttons gets pulled further away from eachother when in game

Normal
image
In game
image

1 Like

Your positions need to be scaled and not offset.

1 Like

Change ScaleType to Fit‎‎‎‎‎‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎

1 Like

They are Scaled,

image

1 Like

The AspectType is set to FitWithinMaxSize if this is what you mean
image

1 Like

On the ImageLabel itself there is a property called ScaleType. It’s defaulted to Stretch but Fit makes it so the image automatically fits at the original size inside the label.

The spacing issue is caused by something else you have. It’s not an issue with the Constraints.

1 Like

Thanks, this helps with the images although when playing the game the UI buttons are still pulled a bi aways from each other

1 Like

What else could this be? The buttons are frames parented to a folder within a ScrenGUI

1 Like

I don’t know without playing around with it myself.

1 Like

Pretty sure this should be in #help-and-feedback:art-design-support.

1 Like

Honesty the stretching of UI doesn’t bother me and doesn’t really seem to happen that frequently when playing the game. Thanks!

1 Like

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