Cool Text Effects In Unity | Textmesh Tutorial

Github: Pastebin for the final effect: Pixelsmith Itch Page: UPDATE: You don’t need to separate the text using spaces, the textInfo field also has a wordInfo array which you can use in place of the characterInfo array. Use my code if you need to separate the string using other punctuation. Thx to Reddit user CustomPhase for pointing this out. Guide for other Text Effects: Rotate/Swinging Effect: - Create an origin point for each character/word. - Use the method to create a 4x4 matrix that can translate, rotate and/or scale. Rotate based on some Sin or Cos function for swinging. - Apply this matrix to the local position of each vertex (relative to the origin) using .MultiplyPoint3x4(). Pop-up Effect: - Lerp the vertices between some “source“ position and their og position. - The factor for the lerp can be based on with an offset for each word/character so one will come after the other. - Helpful fact, the coordinates are in local space to the text object so any worldspace points you want to use, need to go through () first. Fade-in/out Effect: - When altering the colours, alter the alpha channels as well for some cool results! Twitter:
Back to Top