Back to API Reference
Class
UniTextAnimationBridge
sealed
Inherits:MonoBehaviour
Bridges a Unity Animator to a UniTextBase: Animator writes hit serialized fields directly and bypass the property setters that normally invalidate the text pipeline, so this turns them back into the correct UniTextDirty invalidation.
Remarks
A sibling capability component, like UniTextSelectable: add it to a GameObject that already has a UniText or UniTextWorld. Its presence enables animation diffing; without it the host does no per-frame diff work, so non-animated text pays nothing. All animation is opt-in through
Handlers: add the field handler for your component (UniTextFieldsAnimationHandler for a UniText, UniTextWorldFieldsAnimationHandler for a UniTextWorld) to animate its own fields, and ModifierFieldsAnimationHandler to animate the fields of any modifier in the host's styles. Per-range animation goes through the parameter surface (UniTextDriver, ownership) instead.public UniTextBase TextComponent{ get }The text component this animator drives. Same GameObject; lazily resolved so layout queries work identically in edit and play mode (single runtime path, no edit-time branch).
