Text
Information on designing and animating Text
Read/Update Text Runs at Runtime
If you intend to update a text run at runtime it’s important to manually enter a unique name for the run in the editor:

Text runs can also be updated on components at runtime, see Read/Update
Nested Text Runs at Runtime below.
Reading Text via RiveAnimationView
To read a given text run text value at any given time, reference the.getTextRunValue() API on the RiveAnimationView:
null if the text run could not be queried.
Setting Text via RiveAnimationView
To set a given text run value at any given time, reference the.setTextRunValue() API on the RiveAnimationView:
textValue, with a String value that you want to set the new text value for.
If the supplied
textRunName Rive text run cannot be queried on the active artboard, Rive will throw a RiveException that you may need to catch and handle gracefully in your application.Reference to Rive TextRun
You can also choose to query the active Artboard for the Rive text run reference and get/set a text property manually.Read/Update Nested Text Runs at Runtime
It’s possible to set nested text runs at runtime—text that is not on the main artboard but on a Component. To set a nested text run, you’ll need to take note of the path where the input exists at an artboard level. For example, to get/set the text run named button_text on the Button artboard, you need to provide the correct path.
- Main -> NestedArtboard -> Button

- ArtboardWithUniqueName -> ButtonWithUniqueName
ArtboardWithUniqueName/ButtonWithUniqueName
Reading Text via RiveAnimationView
To read a given text run text value at any given time, reference the.getTextRunValue() API on the RiveAnimationView:
null if the text run could not be queried.
Setting Text via RiveAnimationView
To set a given text run value at any given time, reference the.setTextRunValue() API on the RiveAnimationView:
textValue, with a String value that you want to set the new text value for, and the path value to where the text run exists at an artboard level.
If the supplied textRunName Rive text run cannot be queried on the active artboard, Rive will throw a RiveException that you may need to catch and handle gracefully in your application.
Export
component name