Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unity Button text not showing on some devices

So earlier I was using best fit in all my text and it was working fine. But the ui became inconsistent with that and so I removed best fit and carefully set size for each screen/panel.

The problem now is that the text is not visible on some devices(like nexus 7).

But while on unity scene it works fine. Can anybody suggest how to proceed with this.

Thanks in advance..

like image 835
Jajan Avatar asked Jan 28 '26 15:01

Jajan


1 Answers

You have several options to adjust UI.Text:

  1. increase RectTransform Width and Height
  2. decrease the font size manually
  3. adjust the font size by using best fit
  4. shorten your text, which can be hard in rather lengthy languages
  5. let it overflow by setting "Horizontal Overflow" and/or "Vertical Overflow" to "Overflow"

Then you need to test it in all resolutions (test extrem cases in aspect ratio and resolution) and in all languages your app supports.

You need to decide on each case, which options fits better.

like image 60
JeanLuc Avatar answered Jan 31 '26 19:01

JeanLuc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!