Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

TextMesh Pro TMPro <u>underline</u> thickness randomly varies, sometimes near-invisible

Discussion in 'UGUI & TextMesh Pro' started by MrLucid72, Aug 16, 2020.

  1. MrLucid72

    MrLucid72

    Joined:
    Jan 12, 2016
    Posts:
    899
    upload_2020-8-16_16-54-53.png

    Sometimes it's about 2px (expected), but others it's about 1px (unexpected), almost invisible.

    (Embedding the package since that previous bug report in 2020.1 stable in a previous post I'll find shortly)
     
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    The underline thickness is defined in the font asset and scales like any other character. As such, and especially if you are using a Canvas Scaler, it can get too thin.

    When very thin, it will be affected depending on the vertical positioning. I would suggest increase the thickness of the underline which should resolve that but I can also explore some type of clamping on the thickness.
     
    MrLucid72 likes this.
  3. MrLucid72

    MrLucid72

    Joined:
    Jan 12, 2016
    Posts:
    899
    Setting from 1.8ish to 4 seems to have done the trick~