Events
Last updated
Was this helpful?
Last updated
Was this helpful?
Text Animations for UI Toolkit includes an event system that can connect the animations to other systems, such as creating sound effects when text appears, or showing a skip / next button.
You can use the Built-in Event Handlers to react to events. If that's not powerful enough for you, it's also possible to create Custom Event Handlers.
LetterAppearanceEvent
Get raised for every single letter that appears. You can offset the timing of this event with the Letter Appearance Event Offset
in the , which can help synchronize sound effects with text appearing while using fade-in effects.
TextAppearanceFinishedEvent
The event is emitted when the last letter has appeared. It can be used to handle Skip and Next button functionallity. Check out the example scene to see it in action.
CustomEvent
A custom event created with the <event="name">
tag. The name you specify in the tag is saved in the name
field of the event.