Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

How to make default text animation that always play?

A topic by Rekize created Jun 12, 2020 Views: 238 Replies: 2
Viewing posts 1 to 3

Hi, I wish to use STM to make a default text animation (e.g. a custom Wave animation) that applies to all the text in the game. Is there a way to give the STM game objects a default animation, in order to avoid typing <w=custom></w> in all the text fields? Would using a custom material works?

Developer

Hey!

Check out the "PreParsing" feature of STM. I should have a sample component included called "STMPreParse" that should do exactly what you want. This component will add a specified string of text to any object if its "Parse" method is invoked by STM's PreParse event (It's one of the UnityEvents under the events tab!) Just set the string to <w=custom> and it'll apply that to the mesh when you change its text!

You don't need to use </w> at the end of the string, but "STMPreParse2" can actually do just that, too! Just make the UnityEvent invoke both!

Thanks! It works very well!