A
A
Anton Vertov2017-07-12 19:13:38
Unity
Anton Vertov, 2017-07-12 19:13:38

How to change the color of words in UI Text?

Good day. There is a Scroll View on the stage, Text hangs in the Content.
In this Text it is planned to write an array of words. Some words should be red and some green. How can it be implemented so as not to produce these Text elements?
There can be more than 30 words (there is no specific value), is it that it turns out to create 30 Text elements and put a word in each and change the color for each? How can I accomplish this task, please tell me. Thank you very much in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2017-07-12
@1Frosty

RichText checkbox plus color tag:

<color=red>красный текст</color>
<color=green>красный текст</color>

Maybe the color in quotes is necessary - there is no unit at hand to check.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question