Search Unity

Bug TMP Outline Issue

Discussion in 'UGUI & TextMesh Pro' started by TomTheMan59, Jul 5, 2021.

  1. TomTheMan59

    TomTheMan59

    Joined:
    Mar 8, 2021
    Posts:
    356
    Hi everyone,

    There seems to be a big issue with outline and TMP. In both UIToolkit and UGUI when using TMP, the outline doesn't properly render. This has seemed to be an issue for a long time from other posts? (or maybe it is recent?)

    The top "Hello" is TMP in UGUI and the bottom is unity's standard text. I didn't add UIToolkit, but its the same issue as the top.

    Screen Shot 2021-07-05 at 4.34.53 PM.png


    Is there any fix on the roadmap to render the outline correctly like unity's standard text does?

    Thanks for such a great tool!
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,596
    The above behavior is simply the result of using either SDFAA or SDFAA Hinted as Atlas Render Modes in the generation setting of the font asset.

    upload_2021-7-5_16-34-38.png

    To understand the difference between these SDF sampling modes, please see the following post / thread.

    P.S. There is an issue with the SDFAA sampling modes which I plan on addressing at some point. However, as per the post I linked above, this sampling issue is only visible on text with an outline that is displayed at 72 point size or larger. Now given these text objects are them more likely to be titles which tend to be more heavily styled, I recommended using a static font asset using the SDF16 sampling mode.
     
    Last edited: Jul 6, 2021
  3. TomTheMan59

    TomTheMan59

    Joined:
    Mar 8, 2021
    Posts:
    356
    Ah! Thanks for the links. I am glad this is not a bug.