Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

TextMesh Pro Wrap by words ONLY, never break (even when a word doesn't fit)

Discussion in 'UGUI & TextMesh Pro' started by Romaleks360, Nov 18, 2023.

  1. Romaleks360

    Romaleks360

    Joined:
    Sep 9, 2017
    Posts:
    72
    Currently, when a word doesn't fit, TMP breaks it and wraps by character. What I want is Text Wrap Mode that will always keep word characters together on a single line. If a word doesn't fit, then it gets truncated (or overflow) according to the selected Overflow setting.

    This was requested once in 2019:
    https://forum.unity.com/threads/could-we-limit-wrapping-by-words.715052/

    My case is this:
    upload_2023-11-19_2-6-29.png
    This "d" is ugly... That's why I want it to get truncated.

    Is it possible? Thanks!