Skip to content

AlicanHasirci/TextTween

Repository files navigation

TextTween

TextTween is a lightweight Unity library designed to animate TextMesh Pro (TMP) texts with high performance. It leverages Unity's Job System and Burst Compiler to deliver smooth and efficient character-level animations.

✨ Features

  • 🚀 High-performance character animation using Jobs and Burst
  • 🔠 Fine-grained control over individual TMP characters
  • 🎮 Easy to integrate into existing Unity projects
  • 🧩 Lightweight and dependency-free (except TMP)

📦 Installation

You can add the package via PackageManager with the URL:

[email protected]:AlicanHasirci/TextTween.git

🚀 Usage

  1. Start by adding TweenManager to your text.
  2. Bind the text to Text property.
  3. Add modifier components to a game object and add them to the list of Modifiers. Re-arrange the modifiers to change the order of modification.
  4. By changing the Offset value, you can adjust the char animation overlap. '0' for all letters animating together, '1' for all letters to animate one by one.

Modifiers

1.Transform Modifier

Allows you to modify letters position, scale or rotation according to curve over progress of TweenManager.

  • Curve: Add easing to progress propagated by tween manager.
  • Type: Shows the value to modify(position, rotation or scale).
  • Scale: Dimension mask for scale operation.
  • Intensity: Amount of change per axis.
  • Pivot: Pivot point of transformation.

2.Color Modifier

Lets to change the color of letters over time.

  • Gradient: The colors that will be interpolated according to progress.

3.Warp Modifier

Warps the lines of text according to intensity and curve provided over progress. The intensity is multiplied by the curve value and applied to letters as Y displacement.

  • Intensity: Amount of displacement
  • Warp Curve: Curve to be used by modifier

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages