Cool Text Effects In Unity | Textmesh Tutorial
Автор: Madalaski
Загружено: 2020-08-16
Просмотров: 47879
Github: https://github.com/Madalaski/TextTuto...
Pastebin for the final effect: https://pastebin.com/EwhzJuhZ
Pixelsmith Itch Page: https://madalaski.itch.io/pixelsmith
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 Matrix4x4.TRS 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 Time.time 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 transform.InverseTransformPoint() first.
Fade-in/out Effect:
When altering the colours, alter the alpha channels as well for some cool results!
Twitter: / madalaski
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: