Creates a new Action with the name of name
.
Setting the state of this action will toggle the state of the state machine. You should use Variant.string or similar to create the state.
this |
An StateMachine |
name |
the name of the action. |
A newly created Action. |