Search Unity

TextMesh Pro TextMeshPro - Wrapping vs Carriage Return - Different Rect width

Discussion in 'UGUI & TextMesh Pro' started by borbog, Apr 4, 2021.

  1. borbog

    borbog

    Joined:
    Feb 4, 2017
    Posts:
    1
    I am using the Vertical Layout Group to expand the RectTransform to the text written.

    When a word is too long for a single line, it wraps on the second line, but keeps the width of the TMPro transform maxed out. (See yellow border)



    The expected behaviour would be same as when I put a new line (pressing enter between "one" and the "very long word"), which makes the transform only as wide as the longest line. (See yellow border)




    http://borbog.com/Forum/tmpro_error.gif

    I tried using the newest TMPro version (3.0.4) but still same behaviour.

    Any ideas? Thank you in advance.
     
  2. psgun0709

    psgun0709

    Joined:
    May 17, 2020
    Posts:
    1
    hi, have you figured it out by any chance?