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.
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.
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.
We’re most likely going to look into a scriptable solution instead if that’s the case, we can try the provided solutions but as we’re trying to balance out the sizing between devices and still keeping general UI flexibility we’ll most likely end up with a script to manage it anyways
Thank you for your time. Looking forward to more UI editing tools/solutions!
Hi, don’t know if this would help with the case. In this modified structure, a parent frame with 0.4 x scale that constrain the bounds for text layout and a second parent with 0.8 scale to allow the 0.1 scale padding on individual side. An extra ListLayout is added with center alignment to keep label centered. This structure would stably scale with UIScale. Unfortunately our automatic size system could not stably constrain text with scale settings and anchor points as it confuses with the max/min bounds.