What are SMITrigger, SMIBool, SMINumber, SMIInput used for in rive animation tool?

79 views Asked by At

I am learning flutter with rive.

Ifound a tutorial app and there is: success = controller.findInput('Check') as SMITrigger; As far as I understand and saw in the state machine editor, it is the condition name of a transition between 2 states. After we can do success.fire() to trigger the animation. But what are SMIBool, SMINumber, SMIInput? Thank you for your help.

1

There are 1 answers

1
Md. Yeasin Sheikh On

These class are used to control the artBoard animation's>> AnimationController>> inputs sections with flutter.

Image from Rive editor.

enter image description here

SMITrigger: You can think this as a bool which reset to false itself automatically. (e.g. Pressing a key on keyboard which move up once we redirect to another key). This class used to read and create instance of Trigger input.

SMIBool: This is used to get and used to control Bool input.

SMINumber: You read and control Number input.

SMIInput: State Machine Instance Input, you can read any of them. Like SMIInput<double> reading for bool which can be replaced with SMIBool.

Find more about rive and my rive_state_machine_example.