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

Need to display the unicode of a missing character

Discussion in 'UGUI & TextMesh Pro' started by JeromeHdz, Mar 13, 2019.

  1. JeromeHdz

    JeromeHdz

    Joined:
    Mar 7, 2019
    Posts:
    4
    Hello,

    I'm using TextMeshPro and sometimes I have some missing character, I know how to add fallback font but what I want exactly is to get the Unicode of the missing character to display it beside the "square character" which represents a missing character.

    I don't know how to do it.
    Do you have some suggestions?
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    I will need to think about this one.

    The unicode value of missing glyphs is displayed in the console but those unicode values are not stores anywhere.

    You could use the TMP_FontAsset.HasCharacter() functions to get a list of missing characters from a given block of text.

    Out of curiosity, what is the use case for displaying the missing unicode values in the game view / at runtime?