D
D
djtoryx2016-10-27 02:18:26
Unity
djtoryx, 2016-10-27 02:18:26

How to scale text?

I have a UI element "TEXT" which is positioned on a fixed width background. The string can be of different lengths and should be displayed without hyphens (i.e. in a string). And I want the text itself not to go beyond the background, no matter how long it is. And the question is, is it possible to reduce text (font or scale) with ui tools if it exceeds certain limits?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Basmanov, 2016-10-27
@djtoryx

The Text component has a Best Fit checkbox, it allows you to make the text fit rubber.
hrq0W

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question