Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

TextMesh Pro (Case 1368517) TextMeshPro "Character Set" setting not persistent

Discussion in 'UGUI & TextMesh Pro' started by Peter77, Sep 26, 2021.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,639
    Unity 2019.4.20f1, TMP 2.1.6

    The "Character Set" setting found in the "Font Asset Creator" window does not persist.
    It changes to "Unicode Range (Hex)" each time the window is opened.

    Reproduce
    1. Select TMP font in project
    2. Click "Update Atlas Texture" in Inspector
    3. Change "Character Set" to "Characters from File"
    4. Click "Generate Font Atlas"
    5. Close window
    6. Click "Update Atlas Texture" in Inspector

    Actual
    The "Character Set" setting no longer is set to "Characters from File".

    Expected
    The selected "Character Set" setting is saved when clicking "Generate Font Atlas" and restored when opening the window.
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,596
    The Unicode Range should match exactly the set of characters that are contained in the font asset. This is just a different way to represent the same set of characters.

    Any specific reason you still want to see it as individual characters instead of ranges?
     
  3. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,639
    Thank you for the reply.

    I don't want to see it as individual characters, I want that the "Character Set" option is saved and restored when I reopen the font asset.

    Right now it always selects "Unicode Ranges (Hex)" and I have to switch the option to "Characters from File" again before updating the atlas texture. Please watch the video that's attached to the bug-report for a full description of the issue.
     
  4. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,639
    Did the additional information help you to understand the problem, @Stephan_B ?
     
  5. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,596
    Clearer now. Thank you for submitting the bug report. Will take a look as soon as possible and follow up shortly thereafter.
     
    Peter77 likes this.