Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Bug TMPro: "\t" doesn't show until edited after set active

Discussion in 'UGUI & TextMesh Pro' started by MrLucid72, Feb 22, 2021.

  1. MrLucid72

    MrLucid72

    Joined:
    Jan 12, 2016
    Posts:
    1,008
    upload_2021-2-22_18-37-20.png

    Notice "\t" for tab - if I were to manually edit the text (anything/anywhere in any form), the \t will magically turn into a tab.

    Not that any fix would be backported to the version of Unity that I use (even if an incredibly recent version...), but here ya go. No time for any further info - that's for QA.
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,596
    Is this in an Input Field or a TMP text component?

    I gather those object are disabled and already contain this \t. Correct?

    When set active the "\t" shows up instead of displaying as a tab?

    I presume the expected behavior is for the \t to be a tab.

    This fix would be in the TMP package itself so no need for backport.
     
    Last edited: Feb 23, 2021