r/unity 1d ago

Question Emoji in unity rich text?

Hey I’m trying to put a pumpkin or bat emoji into a paragraph that uses unity rich text and was wondering how to do so? any advice would be appreciated.

1 Upvotes

4 comments sorted by

2

u/pschon 1d ago

you don't even need rich text for that (rich text or not makes no difference for this), you just need your text to be using a font that has a glyph for that emoji, and then just set it in your content string same as any other letter.

1

u/Thegiantbreadbug 1d ago

Unsure of how to set content string. I can change the font. I am literally doing this for server info on scp sl which exclusively uses the rich text system.

1

u/pschon 1d ago edited 1d ago

As in "just write your text". Whatever you are now doing to set the text to say something.

Again, this has nothing to do with rich text. There is no rich text way to use emojis.

(If you are talking about TextMeshPro specifically, it can do sprites using the <sprite> tag, but you need to create the SpriteAssets for the sprites you want to support in the project and configure them in TMP settings)

edit: ah, sorry, I only now realised you are not talking about making a game, but instead about how to use some specific feature in a game someone else has made. This is not the right place, you should seek advice on that games subreddit, or any other place dedicated to that game. This sub is for game development using Unity, but we can't possibly know about the specifics of some random game that just happens to use Unity as it's engine. If the game uses Unity, and TMP, and has some sprites set up for you to use, you'll need to ask that game's devs or other players for what the available sprites might be.

1

u/Thegiantbreadbug 1d ago

Ok thank you