Let's automate writing Style Tags into your strings for TextMesh Pro!

Uploaded by Christina Creates Games
Share: Twitter Facebook
Filling your code or text boxes by hand with TextMeshPro style tags can make the actual string you want to be displayed hard to read. Let's create an automatic system that handles adding tags for us and have it work at runtime, too!

I love tags (I guess at this point in my series on them it's obvious), but writing them into strings as well as remembering to do so in the first place, can be rough. I've had text boxes where the contents were almost 50% tags and I had no clue anymore what the original text actually had been - it was super hard to read.

By working with this system though, we will make our life easier and let our tags be automatically set. This will remove our "oh, I need to remember to do"-list by quite a bit and make working with tags even easier!

-- Chapters --
00:00 The problem with adding style tags manually
00:36 Preview of the auto tagging system we want to create
01:09 The prerequisites - what do you need to know and have before doing this?
01:48 Create the scriptable object to hold our keywords to auto tag them later
02:22 The auto tagging system
03:52 Using the auto tag system in the script to set the text box's text
04:17 Tweaking 1: Upper and lower case spellings
04:41 Tweaking 2: Plurals of words

#unitytutorial