Hi,
I have run into an issue using Rich Tags with TextMeshPro where updating the text component in code with a string containing rich tags does not immediately apply the tags to the text, instead it shows the tags in the text until you interact with the TextMeshPro component in the inspector. When you interact with it the text then applies the tags.
Has anyone else ran into this issue?
Thanks in advance
Yes this issue is still happening. Setting the .text value to a stored string containing tags breaks them too.
In my case it was because I had special Bulletpoint character \u2022
When downloading stuff from internet, the text became \\u2022
.
Maybe you have \n
etc or \r\n
doing something similar.
Therefore, I needed to do some post-processing on the string:
str = str.Replace("\\u2022", "\u2022");
_descriptionText.text = str;