How can I use different materials when using the tag for Unity's rich text syntax?
I want to be able to have sprites that are inline with my text without having to create custom fonts.
Here's what I have so far:
Here's the syntax that I'm using for the text in my image:
Planetary <quad material=1 size=20 x=0.1 y=0.1 width=0.1 height=0.1 /> Intergalactic
I'm guessing "material=1" refers to the material index of the Text object. How can I set it to use a different material altogether?
Is there a plugin or other resource that makes embedding icons in text easier?
quad
with Unity's rich text is the only way to go. Thematerial
attribute is the material at the "position in the renderer’s material array". I would preprocess or concat in the proper material index by looking throughRenderer.materials
to find the material you are after. \$\endgroup\$ – MLM May 22 '15 at 5:57