LogoLogo
Showcase & FeaturesDiscord✨Get on the asset store✨
Text Animations for UI Toolkit
Text Animations for UI Toolkit
  • Text Animations for UI Toolkit
  • Getting Started
  • Animated Visual Elements
  • Text Animation Settings
  • USS Properties
  • Templates
  • Performance Optimization Guide
  • Animations
    • Built-in Animations
    • Custom Animations
  • Typewriting
    • Built-in Text Appearance / Vanishing Animations
    • Typewriter Animation Settings
    • Typewriter Control Tags
  • Events
    • Events
    • Built-in Event Handlers
    • Custom Events
  • C# Extensions
    • Custom C# Animations
    • Custom Event Handlers
  • Technical Details
    • Limitations
Powered by GitBook
On this page
  • Parameter Types
  • Changing text appearance / vanishing speed
  • Examples
  • Performance cost

Was this helpful?

  1. Typewriting

Built-in Text Appearance / Vanishing Animations

PreviousCustom AnimationsNextTypewriter Animation Settings

Last updated 20 days ago

Was this helpful?

Parameter Types

Name
Description

a

Amplitude, the strength of an effect. A higher amplitude creates a stronger effect. For example, the distance a letter moves in random-in or random-out or the target font size (in percent) for size-in and size-out.

d

Duration, the time in seconds until the text has fully faded in or out.

x

X Offset, the amount of horizontal offset.

y

Y Offset, the amount of vertical offset.

Changing text appearance / vanishing speed

The speed at which text is appearing and vanishing can be changed in the Text Animation Settings. Make sure you've added your text animation settings object to your animated text element in UI builder, or the settings will not be applied to your element.

There is also a special control tag (<speed>) for speeding up or slowing down text dynamically, more in Typewriter Control Tags.

Examples

Code
Explanation

Example <fade-in>text</fade-in>!

<fade-in><fade-out>Example text

It's not necessary to close the tags at the end, if you want to change text appearance / vanishing animations for the whole text.

<fade-in>Example <size-in a=2>text</size-in></fade-in>

It's possible to layer different kinds of animations.

Performance cost

The type and amount of animations you use should not significantly impact performance. Most of the performance cost is up-front when you set your text and is mostly dependent on the length of your text.

Check out the Performance Optimization Guide for more information.


Check out Custom Animations and Custom C# Animations if you want to extend the asset with your own animations.

The word text uses the Fade in text appearance animation. If the have default animations, the fade-in is layered on top of them. If the settings has Fallback Animations set up, the fade-in replaces them.

Is an important animation missing? Or maybe an animation tag doesn't support a parameter you'd like to use? Contact me via the , or join my and I'll try my best to help you!

contact form
Discord
Text Animation Settings
Cover

Tag: <fade-in>

Parameters: d

Cover

Tag: <fade-out>

Parameters: d

Cover

Tag: <offset-in>

Parameters: d, x, y

Cover

Tag: <offset-out>

Parameters: d, x, y

Cover

Tag: <random-in>

Parameters: a, d

Cover

Tag: <random-out>

Parameters: a, d

Cover

Tag: <size-in>

Parameters: a, d

Cover

Tag: <size-out>

Parameters: a, d

Cover

Parameters: a, d

Cover

Parameters: a, d

Custom Animations
Custom Animations