FIlling a text

Let’s suppose I have a text. This text should be filled half with red and other with blue color. There are also two teams. If a team scores a point then the red color should extend in that text.

For example, if the text is “UNITY” then the blue color is filled from “U” to half of “I” and the red color is filled from half of “I” to “Y”. When a team wins, the blue color now should extend from “U” to full “I”. How can i do this?

Hello there,

I don’t think you can do this with the regular UI Text. However, the good news is that you can use TextMeshPro instead.

It’s a plugin that was so good Unity ended up buying it. So now it’s free!


Hope that helps!

Cheers,

~LegendBacon