UI Text Appearing as "Typing", One Letter At A Time

The best example of this text effect is here in a Mega Man game…

Does Unity have a plug-in for this hidden somewhere, or is this something mainly coded?

This is not a built in feature, you need to write a script that updates a Text element with new letters over time.

With Unity’s default Text object, this is only possible by adding to the string in real time. A problem: it becomes tricky to know when a word will wrap onto the next line (if you just add to the string, eventually the last word on a line will pop into the next line – distracting for readers).

But with the new TextMeshProUGUI object, you can actually control the colour of individual letters. This allows you to pop in one letter at a time, like you described, but even more interesting things, like fading in one word at a time.

You can refer to this tutorial. Hope it helps

10 Likes

THANK YOU!!!

1 Like

I came here looking for a solution to the awkward word-wrapping!
That’s so simple and brilliant! Thank you!

You can use this base script: