UIScale breaking AutomaticSize

We have a problem with UIScale in combination with TextLabels and AutomaticSize. Scale 1 works fine but as soon as we change it the AutomaticSize starts to misbehave. We’ve seen multiple related threads here, where staff have made fixes but this issue remains. We’ve created a simple standalone scenario as seen in the screenshots.

image

1.0 Scaling

1.5 Scaling

Expected behavior

That the automatic scaling would work as intended even though the UIScaling is applied.

A private message is associated with this bug report

5 Likes

Hi @Pomisze thank you for reporting this issue. As you mentioned there are known issues with automatic size and scaling (both UI scale and UDim2 scaling) that are problematic.

For now I can reach out to one of our engineers to ask for a viable workaround. There may be a solution that involves flex layout + automatic size that could achieve what you’re looking for.

1 Like

Hi @Pomisze,

Thanks for the bug report and the minimal repro file! As @DrRanchDressing mentioned we are tracking multiple AutomaticSize + UIScale bugs and we are aware of the issue. We’ll let you know when we have any updates on this!

In the meantime, I have come up with a few ideas for temporary workarounds. Would any of these options work for your usecase?

  • Setting TextScaled=True on the TextLabel. This should prevent the text overflow problem.

  • Design the UI without AutomaticSize, so the TextLabels have fixed sizes. Then, set TextScaled=True so the text fills the available space, and use UIScale to grow/shrink the entire UI.

2 Likes