- Home /
How to make custom images appear in text
Not sure why my previous question was deleted but I was having quite a bit of trouble getting "quad" and "material" tags to work in TMP Pro, basing it on this previous question/answer about how to add icons in text.
In fact it seems as though quad and material tags don't do anything at all in TMP Pro text, and the text always just renders those tags as literal original text instead of trying to do anything with the tags.
I was able to solve this by using the "sprite" tag via this tutorial instead of material or quad tag, and I wanted to document this in case it helps people in the future.
Answer by MaxLohMusic · May 24 at 01:01 AM
Unity documentation claims quad/material are supported alongside bold, italic, color etc.
What I found is while most of those tags work, including color, the "quad" and "material" don't seem to do anything at all.
The answer is to use "sprite" tags instead of "quad" or "material". I used this tutorial as well as an online sprite atlas maker, to create the sprite atlas.
Your answer
![](https://koobas.hobune.stream/wayback/20220613060921im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Output text GUI not working 2 Answers
How do I add more text parts to this script? 0 Answers
Text wobbles as Content changes 2 Answers
Some Questions ! 0 Answers
How to resize an InputField according to the content which is dynamic? 0 Answers