Search Unity

TextMesh Pro Rendering mark area over trailing spaces.

Discussion in 'UGUI & TextMesh Pro' started by Lord_Eniac, Mar 27, 2021.

  1. Lord_Eniac

    Lord_Eniac

    Joined:
    Jan 28, 2020
    Posts:
    50
    I was looking for a way to highlight text and discovered the MARK tag. It works great with the exception of an edge case that I discovered. If I have a string that contains one or more spaces immediately before the ending MARK tag, the highlighted region will always render the last space before </MARK> as a one-pixel vertical line. At first, I thought the last space wasn't being rendered at all, however putting a single space between <MARK> </MARK> revealed a thin sliver of a highlight. Not sure if this is expected behavior, a known bug, or what. But I thought I'd ask about it.

    I'm using version TMP 3.0.1 and Unity 2020.1.17f1