How to use Text Mesh Pro's link tag to trigger events from your textbox ?

Uploaded by Christina Creates Games
Share: Twitter Facebook
In this video you will learn how to use Text Mesh Pro’s link tag in a way that will enable you to invoke events when your textbox contains link tagged elements. In the first part, we’ll build the system for an all-at once displayed text system, and in the second part we will see how you can make the system work with the typewriter effect we build in the previous video and have characters react to certain parts of the text being revealed.

If your project is getting bigger than what I show in this example, have a look at abstracting the receivers and if it's getting bigger still, look up the observer pattern or an event bus ? I highly recommend adding those two things to your toolbox, but either one would have derailed this tutorial far too much.

? Files on GitHub: http://bit.ly/3DKuvno

-- Chapters --
00:00 What we will be creating
00:26 Quick refresher: The link tag
00:44 The scene's setup
01:20 Sending events with the link tag when all the text is displayed at once
02:57 Implementing the typewriter check for timed events
03:51 Examples for how the listeners could look like
04:11 The result: Our characters can react to the text box's contents!

#unitytutorial