Search Unity

[TextMeshPro] Wavy, per-character effect for text?

Discussion in 'UGUI & TextMesh Pro' started by melos_han_tani, Feb 22, 2018.

  1. melos_han_tani

    melos_han_tani

    Joined:
    Jan 11, 2018
    Posts:
    79
    Hi, what's the best way to achieve the wavy, per-character oscillation effect with TextMeshPro like in this clip?

     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    Take a look at Example 23 - Animating Vertex Attributes included with TMP. This example uses the VertexJitter.cs script which adds some random rotation and translation to each character. This script is a good example to learn from.

    To achieve something similar to what you have in this video, you could use some sin or cos or even use an AnimationCurve.

    The letters are also sort of peeled in which is a bit trickier to implement but would also be done by manipulating the vertex attribute data.
     
  3. melos_han_tani

    melos_han_tani

    Joined:
    Jan 11, 2018
    Posts:
    79
    Thanks, sounds good, I'll check it out!