UI scaling issue on smaller devices

I am currently working on a badge UI for my game and on smaller devices (specifically the iphone 4 and 6) a second line appears, making the text go outside the box. Any solutions or fixes?

The text label itself:

properties:

text constraint properties:

I know it is happening because I made the text box itself bigger. I did that so the size of the text itself matches with the rest of the text

What its supposed to look like. The size of the text matches with the one above.

3 Likes

Just use Text Scaled, no need of UITextSizeConstaint

1 Like

Gotcha, thanks. I deleted the UI aspect ratio constraint and was able to change the size so it fits properly. So I was able to fix the issue

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