Open wibimaster opened 3 years ago
I'm able to have the desired effect by adding a number input on the blend state ; For mixing 2 animation : And on the React side :
<Button
title={'Trigger happy'}
onPress={() => {
riveRef.current?.setInputState('mood_state', 'mix', 5);
riveRef.current?.fireState('mood_state', 'trigger_happy');
}}
/>
Should it be the same as no input value, and 0
for each animation to mix ?
Is it an Android Rive package bug ?
Thanks !
Description
I'm trying to update the animation state with a trigger. But when I call the "fireState" method, the only trace I got on
onStateChanged
ismood_state, AnyState
ormood_state, ExitState
.Provide a Repro
Source
.riv
/.rev
filemoods.riv - v7 moods.rev Permanent link : moods.zip
Expected behavior
Trigger fire should update the animation with the good state
Screenshots
N.A.
Device & Versions (please complete the following information)
1.22.5
Additional context
N.A.