Rive Events
Listen to Rive Events in Bevy
This article is out of date! Find the new version here.
For more information on Rive Events see the respective runtime and editor documentation.
Subscribing to Events
Imports needed:
The following code demonstrates a system listening to all Rive events reported from active state machines.
For example, let's take a look at a code snippet for a star-rating Rive file. If a reported event's name is star, the Number property is retrieved from the event data.
Other properties that can be read are Bool and String, with Property::Bool
and Property::String
.
Additional Resources
Last updated