- Home /
How to align text?
Hi,
how do i align UI text so:
The text floats around another text with dynamic width
The text is aligned to center if wider than container (multtiple lines)
The container is aligned to center if narrower than max-width
(The next line is centerted to the whole container)
Thanks for advices.
Answer by abdullahsyyd · Jun 19, 2018 at 10:31 AM
In the Text component there is a section called Paragraph. In this Paragraph section you can select alignment property having six different options. Trying using it depending upon your requirement.
Your answer
Follow this Question
Related Questions
UI Text Not being centered 3 Answers
how to align 2 different text together with scoring 1 Answer
Planning Text Scroll with Unity UI 0 Answers
UI Text.LineSpacing doesn't work when the Text has only one line ? 1 Answer
How do I place a left or right aligned Text where it would be if it was center aligned? 0 Answers