AutoCorrect text emoticons

Hello! I have a chat in the game, there are sprites smiles as you can replace the text symbols “:–)” or “:-D” to smile? By using the new system and the UI component of the text is displayed Text. In this forum, using the same system. Thanks!

I would use a custom TTF that has as smiley face already in it and load that into your project. Can google smiley face font. You might end up having to take a regular font and add merge a small smiley face font into it.

Then you would just use Regex to find and replace the appropiate group of symbols with your one smiley face character.

If you want to try to add an actual full sprite image, Text UI are not designed to have an image in them. You’d have to somehow draw the sprite where the smiley face should be and that could get very complicated in making sure its position stayed correct as text scrolled up or down.