Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

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:
    36
    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
     
unityunity