State machines define the logic that controls interactive animations in a Rive file.
They transition between animation states in response to inputs such as triggers, booleans, and numbers.Each runtime provides APIs for reading and updating these inputs at runtime.