Search Unity

  1. New Unity Live Help updates. Check them out here!

    Dismiss Notice

TextMesh Pro Text overlaps itself [SOLVED]

Discussion in 'UGUI & TextMesh Pro' started by keenanwoodall, Jun 5, 2018.

  1. keenanwoodall

    keenanwoodall

    Joined:
    May 30, 2014
    Posts:
    578
    upload_2018-6-5_16-10-2.png
    I created a standard Text component and pasted whats in the tmp component and it worked fine. Not sure whats going on. I have a script that's typing out the text, not sure why that would matter though, it's just adding a the next character every few frames.
     
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    3,974
    Most likely your text was copy / paste where you ended up with a Carriage Return char(13) in the text. Check the end of the line of text and you should notice the cursor hitting an invisible character. You can also check the string for this char (13).
     
    adasov575 and yunhan0 like this.
  3. keenanwoodall

    keenanwoodall

    Joined:
    May 30, 2014
    Posts:
    578
    Thanks, that was the problem.
     
    Stephan_B likes this.
  4. domdev

    domdev

    Joined:
    Feb 2, 2015
    Posts:
    334
    hello I know its 2020, but I want to know how i can string replace it? just to avoid it in run time
     
unityunity