Search Unity

Bug First character switches with blank space character

Discussion in 'UGUI & TextMesh Pro' started by ngyJlP, Aug 18, 2023.

  1. ngyJlP

    ngyJlP

    Joined:
    Jul 4, 2018
    Posts:
    25
    Hello,

    After I curve a TextMeshPro mesh with custom projection methods, four vertices after four vertices (including blank spaces), the blank spaces' vertices are sent to improbable areas and the first character's texture is switched with one these.

    The vertices, except for the blank spaces', are in still correct position as shown by the color gradient (1st picture).

    This doesn't happen when I curve TMP with matrix operations as in provided the TMP examples (2nd picture).

    TMP Character Switch Issue.png
     
  2. ngyJlP

    ngyJlP

    Joined:
    Jul 4, 2018
    Posts:
    25
    Solved by skipping blank spaces. Blank spaces were somehow read as default and as such vertices at index 0 were modified.