Bevy
State Machines
Interact with the Rive State Machine in Bevy.
For more information on Rive State Machines see the respective runtime and editor documentation.
Reading/Writing Inputs
Imports needed:
The following code demonstrates reading and updating a Boolean state machine input.
Number and Trigger inputs can be accessed using get_number
and get_trigger
respectively.
Alternatively, you can update an input using Bevy’s EventWriter:
Additional Resources
Was this page helpful?