Navigation
API > API/Plugins > API/Plugins/StateTreeModule
References
| Module | StateTreeModule |
| Header | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeExecutionTypes.h |
| Include | #include "StateTreeExecutionTypes.h" |
Syntax
USTRUCT&40;BlueprintType&41;
struct FStateTreeTransitionResult
Remarks
Describes a state tree transition. Source is the state where the transition started, Target describes the state where the transition pointed at, and Next describes the selected state. The reason Transition and Next are different is that Transition state can be a selector state, in which case the children will be visited until a leaf state is found, which will be the next state.
Variables
| Type | Name | Description | |
|---|---|---|---|
| EStateTreeStateChangeType | ChangeType | If the change type is Sustained, then the CurrentState was reselected, or if Changed then the state was just activated. | |
| FStateTreeActiveStates | CurrentActiveStates | Current active states, where the transition started. | |
| EStateTreeRunStatus | CurrentRunStatus | Current Run status. | |
| FStateTreeStateHandle | CurrentState | The current state being executed. On enter/exit callbacks this is the state of the task. | |
| FStateTreeActiveStates | NextActiveStates | States selected as result of the transition. | |
| EStateTreeTransitionPriority | Priority | Priority of the transition that caused the state change. | |
| FStateTreeStateHandle | SourceState | Transition source state | |
| FStateTreeStateHandle | TargetState | Transition target state |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Reset () |