Rive 101 logoRive 101
β„Ή AboutπŸ“‹ ChangelogδΈ­
0%
Progress0/88
4.2

Text Runs

3m 01sPartial+1 changes
Rive 101 - Text Runs
  • Core Educational Objective: Deeply comprehend and master the operational logic of Text Runs in Rive, gaining the ability to split localized substrings inside a unified typography node for explicit styling and content manipulation.
  • Background Pain Points: In legacy animation workflows, altering the hex code of a single specific keyword inside a block of body copy required shattering the text layer into distinct layout chunks. This broke typographic reflow and led to clipping or horizontal alignment issues when handling localization strings.
  • Final Business Benefits: Text Runs provide a native framework to achieve granular inline styling overrides while preserving a centralized, fluid text container. This architecture provides production-ready resilience for localization pipelines and reactive runtime updates (e.g., dynamically altering usernames or hyperlink states), all while natively exposing both copy contents and assigned style indexes to the animation engine for timeline keyframing.
  • Typographic Layout Safety of Consolidated Container Streams: Because all split text runs reside within a single parent layout container, they naturally share an automatic typographic reflow pipeline. If a variable update at runtime substitutes a short placeholder in Run 2 with a long string (e.g., swapping Joe out for Alexander), the downstream sibling text in Run 3 pushes forward smoothly, preventing text overlap bugs.
  • Runtime Data Injection (Data Binding): In cross-platform runtime environments (such as Flutter, WebGL, or Mobile SDKs), engineers can tap directly into a specific Text Run by querying its string node identifier. This lets engineers inject application data dynamically into an isolated node without manually managing layout coordinates or losing the predefined design attributes (like the customized name style).
  • Discrete Property Stepping: Altering a Text Run's raw text content or style assignment mapping inside the animation timeline uses discrete, stepped interpolation curves rather than continuous fluid gradients. For animating fluid transitions (such as smooth opacity fades or floating positional vectors), leverage Text Modifiers over raw style reassignment tracks.
Some content differs from current version1 changes
2024.9Run requires Design mode

Creating Runs requires Design mode.