State Machines
Interact with the Rive State Machine in Bevy
This article is out of date! Find the new version here.
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
Last updated