Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Don't show □ for character that is not supported

Discussion in 'UGUI & TextMesh Pro' started by Zylex, Jul 21, 2020.

  1. Zylex

    Zylex

    Joined:
    Nov 25, 2008
    Posts:
    238
    Is there a way to disable TextMeshPro showing a □ when a character is not supported? Our game doesn't support Emoji's but Steam names can have Emoji's in them and I'd rather display nothing than □ for a missing characters.
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    In the TMP Settings, you can define what character will be displayed when a character is missing. Currently, it uses Unicode 0 which is the missing glyph (Square) but you can replace this by 32 for a space. You could also replace it with Zero Width space which is 0x200B or decimal value 8203.

    The value is decimal.
     
    Zylex likes this.
  3. Zylex

    Zylex

    Joined:
    Nov 25, 2008
    Posts:
    238
    Thanks for your reply!
     
    Stephan_B likes this.