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

TextMeshPro font lines/flickering

Discussion in 'Getting Started' started by xjjon, Apr 3, 2021.

  1. xjjon

    xjjon

    Joined:
    Apr 15, 2016
    Posts:
    591
    upload_2021-4-3_10-31-28.png

    I noticed this happening sometimes in my game. The bottom text is rendered weird. It only happens occasionally and on certain devices (mobile).

    Hard to reproduce either as it does not always happen.

    The font is different. The one with outline is a sprite atlas and that always renders properly.
    The lower text (without outline) is just a normal .otf font

    Anyone seen this before? Ideas on how to diagnose?
    Thanks!
     
  2. AlanMattano

    AlanMattano

    Joined:
    Aug 22, 2013
    Posts:
    1,500
    And if you move the game object near or far away from the camera?
    Can it be that it overlapping another component?
    Try to substitute the texmeshpro component with normal UI to look is still triggering the issue.
     
  3. mech_alina

    mech_alina

    Joined:
    Nov 3, 2020
    Posts:
    26
    Hello, what fixed this for me was to change the shader from TextMeshPro/Distance Field to TextMeshPro/Mobile/DistanceField for the UGUI material to render okay on Android builds on Android phones