Search Unity

Question TextMeshPro Newline problem

Discussion in 'UGUI & TextMesh Pro' started by Tiaotiao33, Apr 7, 2023.

  1. Tiaotiao33

    Tiaotiao33

    Joined:
    Feb 2, 2021
    Posts:
    3
    As shown in the picture, I entered several 'a' in the input box, and then added a space character after the third 'a', and then it automatically wraps the line, it seems that it is because it puts all the ' a' is recognized as a word, and this problem also occurs when using numbers or other letters. How can I operate it so that it only has space characters and no new lines, I have used <nbsp><nobr> and so on, the labels are invalid.
     

    Attached Files:

    • 1.png
      1.png
      File size:
      266.3 KB
      Views:
      68
    • 2.png
      2.png
      File size:
      260.7 KB
      Views:
      73
  2. Tiaotiao33

    Tiaotiao33

    Joined:
    Feb 2, 2021
    Posts:
    3
    TextMesh Pro Version :2.1.6