Search Unity

style sheet prevents Underlay from working?

Discussion in 'UGUI & TextMesh Pro' started by laessnb, Mar 31, 2021.

  1. laessnb

    laessnb

    Joined:
    Jun 10, 2014
    Posts:
    101
    I'm using TMP 2.1.4 on 2019.4.13f1.

    I have a style sheet that changes color and font+material for a tag. However, the resultant text loses the underlay setting completely.

    This happens whether I set the style using rich text or the TMP component's dropdown.

    If using rich text, this even occurs if I set the TMP component's material and font to the exact same thing as the style indicates; it looks correct before the style tag, then loses the underlay.

    Examples below, with blue color to differentiate styled text; this reproduces with the <color> tag removed.

    upload_2021-3-31_15-1-52.png

    If I just set Text Style to "bug", it looks like this:

    upload_2021-3-31_15-2-42.png

    Here's the entry in the style sheet:

    upload_2021-3-31_15-3-14.png


    Please advise :)