S
S
Spartanec332021-08-22 14:12:42
Unity
Spartanec33, 2021-08-22 14:12:42

How to change borders of TMPro_Text?

The text has a "yellow border". When the resolution is changed, it does not adjust as it should, depending on the Scale With Screen Size, it adjusts well either 1 (if match 0 or 1) side or both are bad (if match 0.5), i.e. the text borders (respectively, the text) go beyond canvas borders. I thought about changing it in the code, but the border property of the TMPro_Text class is closed for changes and therefore I don’t understand how to overcome it

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pashara, 2021-08-24
@Spartanec33

The yellow borders are the borders of the indents, not the text itself. It is better to change the size of the text through the dimensions of the RectTransform.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question