-
What do you want to achieve? Keep it simple and clear!
I want text to be scaled equally across all devices. -
What is the issue? Include screenshots / videos if possible!
MyTextLabel
hasTextScaled
set to true and theTextLabel
itself is sized usingScale
and it has noUITextSizeConstraint
inside it.
Thing is, on all my UI, I do this “UI Test” where I emulate a 50x50 monitor @ 80p res. versus a 7680x4320 monitor @ 10,000p res. (this test IMO helps you determine how well your UI adapts to different kinds of monitors and is probably good for fine-tuning UI too). When you do this test, you’re supposed to make sure that you can MAKE OUT that there’s stuff there on the screen in the 80p test and make sure that its roughly positioned where you want it and vice versa.
On the 10K p test, all UI looks fine except SOME of my texts. They’re smaller than ants. I tried adding UITextSizeConstraint
s to the TextLabel
s but they only made it smaller.
I heard you can overcome this using UIScale
s but they scale the entire TextLabel
itself which might mess up the hitboxes for buttons etc. and I generally don’t want to use that method.
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
^ Checkmark means it’s just fine. Circle means it’s an issue.