Styles
Last updated
Last updated
Styles quickly replace parts of the text with something else, for example to create a combo of effects, typewriter actions and events, which would otherwise require you a lot of typing for recurring tags.
If you're using TMPro, please use Text Animator Styles and not TMPro ones for this, as the latter (TMPro's) can't recognize Text Animator tags and will result in them being added to the text.
Simply open the stylesheet scriptable object of your choice (you can create one in the Project Folder, via the Create menu -> Text Animator-> StyleSheet), either specific to your Text Animator component or global for all of them (adding it in the Settings, like the image below)
Then you can add as many styles as you want, which will include a style tag, the opening text and the closing one.
From the example above, whenever you write the style tag “<style1>
” in the text, it will be replaced with “<wave><play=5><rainb><shake>
” - and closing it with “</style1>
” will be replaced with “</wave></rainb></shake><?ended>
”.
Styles tags are case insensitive (writing "<style1>" and "<Style1>" will produce the same result).