DEPRECATION NOTICE: This entire page documents the legacy system.
For new projects: Use Data Binding instead.
For existing projects: Plan to migrate from to Data Binding as soon
as possible. This content is provided for legacy support only.
Rive Events
With Rive events, you have the ability to subscribe to meaningful signals that get reported from animations, state machines, and Rive listeners, all created at design time from the Rive editor.
Events
Events are a way to send signals to your runtime code to execute a block of code at the right moment. They enhance the communication between designers and developers by passing along useful information.
Accessing Events
The following code demonstrates accessing all Rive events reported from an active state machine.- Components
- Legacy API
With a reference to the Rive Widget, you can subscribe to the
OnRiveEventReported
event in your scripts:float
and a message of type string
are retrieved from the event data (custom properties).
- Properties that can be read are bool, string, and float.
- Access a dictionary of all properties with:
reportedEvent.Properties
.