Configure state groups in a state manager. More...
Public Member Functions | |
StateTransition | CloneTransition (StateTransition sourceTransition) |
Duplicates a transition. | |
StateTransition | CreateTransition (State startState, State endState) |
Creates a transition between two states. | |
void | DeleteTransition (StateTransition transition) |
Deletes a transition. | |
void | MoveTransition (StateTransition transition, int indicesToMove) |
Moves a transition relative to its current position. | |
Properties | |
bool | IgnoreStateValidityCheck [get, set] |
bool | IsDisabledOnExport [get, set] |
IEnumerable< State > | States [get] |
Gets the states in a state group. | |
IEnumerable< StateTransition > | StateTransitions [get] |
Gets the state transitions in a state group. | |
Configure state groups in a state manager.
State groups contain states, define controller properties, and transitions between states in a state group. A typical transition defines a period and interpolation paths between property values of two states. You can define transitions using a general guideline for all properties, using interpolations for each property as specified, or using animation items.
Examples
To create, duplicate, move, and get transitions in a state group:
To set the controller property in a state group:
To set a custom controller property in a state group:
StateTransition CloneTransition | ( | StateTransition | sourceTransition | ) |
Duplicates a transition.
Kanzi adds a duplicated transition as the last transition in a state group. You can move transitions in a state group using MoveTransition.
sourceTransition | The name of the transition you want to duplicate. |
StateTransition CreateTransition | ( | State | startState, |
State | endState ) |
Creates a transition between two states.
Kanzi adds a new transition as the last transition in a state group. You can move transitions in a state group using MoveTransition.
startState | The state from which the transition starts. |
endState | The state where the transition ends. |
void DeleteTransition | ( | StateTransition | transition | ) |
Deletes a transition.
transition | The name of the transition you want to delete. |
void MoveTransition | ( | StateTransition | transition, |
int | indicesToMove ) |
Moves a transition relative to its current position.
transition | The transition you want to move. |
indicesToMove | The position relative to the current position of the transition. Positive values move the transition down, negative values move the transition up. |
|
get |
Gets the states in a state group.
The states.
Examples
To get all states in a state group:
|
get |
Gets the state transitions in a state group.
The state transitions.