Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Skewed Text

Discussion in 'UGUI & TextMesh Pro' started by Vekta, Dec 20, 2017.

  1. Vekta

    Vekta

    Joined:
    Jun 22, 2014
    Posts:
    9
    Hello,

    Any plans to support skewed text in a future update of TextMeshPro?

    I've hacked in in for now by changing the vertex data in the lateupdate,
    but it seems to get over ridden all the time by random updates and would like something more optimised.
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    Modifying the vertex data is actually pretty efficient, especially when trying to animate modifications of this vertex data.

    In terms of the geometry being overridden, this will happen anytime text changes. However, you can set the renderMode to DontRender which will stop pushing updated geometry to the mesh before you modify it. See the example Animating Vertex Attributes and other example scripts included with TMP in the Examples/Scripts folder.

    There are a few posts on the TMP user forum about some of this. Here is similar information also posted here before.
     
  3. Vekta

    Vekta

    Joined:
    Jun 22, 2014
    Posts:
    9
  4. Liderangel

    Liderangel

    Joined:
    Jul 8, 2018
    Posts:
    101
    Since this appears as the top Google search when looking for skewed TMPro text, there's a "SkewTextExample.cs" file inside in the Examples & Extras package of TMPro (Window - TMPro - Import Examples & Extras). You just draw the script to a TMPro and there you go.