Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Can't seem to get Rich Text to work in UI Text.

$
0
0
I have a Text Game Object and I've tried passing a string containing HTML in it to change the color of part of the string but it's not working it just displays the code.

The documentations says that you use the HTMl tags which I am.

Tooltip.transform.GetChild (0).GetComponent<Text> ().supportRichText = true;
Tooltip.transform.GetChild (0).GetComponent<Text> ().text = "<color=blue>" + _item.itemDescriptiveName + "</color><b><b><color=white>" + _item.itemDesc;

I'm even trying to ensure the...

Can't seem to get Rich Text to work in UI Text.

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>