I’m using the VertexJitter.cs example as a base and one thing I want to do is to only apply my changes to characters that are inside a specific style.
I already added a style to the “TMP Default Style Sheet” asset and it recognizes it.
But now while iterating over the characters, I don’t see any way in TMP_TextInfo to get the styles that are used in the current text (or their names and start and end index).
There is fontStyles but that doesn’t help me since I’m not looking for , , …I need to find <style=MyStyle>
Do I have to manually parse the text?
Maybe I’m going about this the wrong way and there’s an easier way to simply have a tag and apply custom modifications to it? I mean having a custom style and doing stuff to the characters inside it sounds pretty common at least.
Or does a newer version have something like textInfo.Tags, textInfo.Styles, … or so?