Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Nominations have been announced for this years Unity Awards. Celebrate the wonderful projects made by your peers this year and get voting! Vote here!
    Dismiss Notice
  6. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  7. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

TextMesh Pro AutoSize and width adjustment with spaces

Discussion in 'Unity UI & TextMesh Pro' started by NolwennB, Dec 5, 2018.

  1. NolwennB

    NolwennB

    Joined:
    Mar 4, 2014
    Posts:
    12
    Hello,
    I'm trying to use the AutoSize option with Width set to 50% on a TextMeshProUGUI, to shrink my text in width first, rather than lowering the font size. It works fine if I don't have any space in my text, but it doesn't work at all if I put a space in the middle of my text : the result is the same that if width is set to 0%. Can you help me on this ?
    Thanks
    Unity 2018.2.8f1
    TMP 1.3.0
     
  2. NolwennB

    NolwennB

    Joined:
    Mar 4, 2014
    Posts:
    12
    Same issue with a - instead of a space.
     
  3. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    1,874
    Can you provide me with a example of the raw text you are using and settings in the inspector on that text object?

    Please provide the string of text and image of the inspector values. This will make it easier for me to reproduce on my end.
     
  4. NolwennB

    NolwennB

    Joined:
    Mar 4, 2014
    Posts:
    12
    Sure, here it is :
    upload_2018-12-6_14-4-55.png

    upload_2018-12-6_14-6-16.png
     
  5. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    1,874
    Thank you for provide the additional information.

    I was able to reproduce the behavior and now looking for a clean way to address this.

    Will provide an update as soon as I have more information.
     
  6. NolwennB

    NolwennB

    Joined:
    Mar 4, 2014
    Posts:
    12
    Hello Stephan,
    Did you find a solution for this issue ?
    Thank you.
     
  7. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    1,874
    I did look into it and it will be tricky to alter the behavior. I'll take another look at this mid week.