How to add sprites to TMPro text

Hello, I’m making a mod for a Unity game called Terra Invicta and I was wondering why TMPro won’t recognize the name of a few sprites I want to use in some text. The sprites I’m referring to are already in the game assets, because I saw them there both using AssetStudioGUI and printing a list of Resources.FindObjectsOfTypeAll<Sprite>(). The syntax I’m using is <sprite name = green_arrow>, which works perfectly for other sprites already used in game, while the ones I’m trying to use are not used anywhere.

I’ve seen mentioned in a few places that sprites need some kind of atlas to be referenced by TMPro, but I honestly have no idea how that works. Thanks in advance!

This is why we have documentation. It’s pretty well covered all the steps you need to do in the core Unity TMPRo documentation.

As for satisfying all those requirements in a mod for an existing game, you’ll need to consult any documentation available for that game as well, in order to satisfy all the core requirements.

NOTE: there is a chance the folks who made this game have existing mechanisms for adding sprite glyphs. Go see their documentation.

NOTE: This forum is NOT for modding questions.