Interact with the Rive State Machine in Unreal.
effectsVolume
is a number, continueAvailable
is a boolean, and back
is a trigger.
Set Bool Value
on the artboard.
In the example below, we’re setting the boolean input, named isOpen
, equal to a local variable Is Open
.
Get Bool Value
on the artboard, and get the return value.
Set Number Value
on the artboard.
In the example below, we’re setting the number input, named health
, equal to a local variable Health
.
Get Number Value
on the artboard, and get the return value.
Fire Trigger
on the artboard.
In the example below, we’re firing the trigger named openMenu
.
numExpression
.
This number input switches out the active playing animation, and the state machine blends between the different animations as they transition.
From a runtime we can set the numExpression
through Blueprint to toggle the correct expression for the Robot.
In this example, the number input is set when the corresponding number key is pressed: