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.

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:
    893
    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

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    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