- Home /
TextMeshPro Not updating Text with Rich Tags Immediately
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
Comment
Answer by akumakira164 · Nov 18, 2020 at 06:04 PM
Yes this issue is still happening. Setting the .text value to a stored string containing tags breaks them too.
I found a solution after a bit more digging.
Either wait a frame and use: .Force$$anonymous$$eshUpdate();
Or you can toggle rich text by using: .richText = false; .richText = true;