createStateMachineByName

Create a state machine by name for the given artboard. This is useful when the artboard has multiple state machines and you want to create a specific one.

ℹ️ State machines are initialized to the "design" state upon creation, which is almost never the desired starting point for runtime use. Additionally, the Entry state absorbs the first advance call due to not tracking the remaining advance time after exiting.

For these reasons, you will almost always want to advance the state machine by 0ns after binding view models and before your first real advance call to allow it to settle into its initial "animated" state.

Parameters

artboardHandle

The handle of the artboard that owns the state machine.

name

The name of the state machine to create.

Throws

If the CommandQueue has been released.