Search Unity

How to hide custom Text Tags from TextMeshPro Text?

Discussion in 'Scripting' started by Rukas90, May 26, 2019.

  1. Rukas90


    Sep 20, 2015
    Hello everyone,
    I am trying to figure it out on how to hide all rich text tags from the TextMeshPro text.

    If I put for example already existing tags, such as <size=25>SomeText</size> this tag is hidden, but if I place a custom tag, for example <CustomTag>SomeText</CustomTag> this tag is visible and not removed.
    I want to put these custom tags as text markers.

    Is there a way to make all tags invisible? So all characters that start with < and end with >?

    Thank you