Navigation
API > API/Plugins > API/Plugins/StateTreeModule
The rules used by the execution context for selecting states.
| Name | EStateTreeStateSelectionRules |
| Type | enum |
| Header File | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeTypes.h |
| Include Path | #include "StateTreeTypes.h" |
Syntax
enum EStateTreeStateSelectionRules
{
None = 0,
CompletedTransitionStatesCreateNewStates = 1 << 0,
CompletedStateBeforeTransitionSourceFailsTransition = 1 << 1,
ReselectedStateCreatesNewStates = 1 << 2,
Default = CompletedTransitionStatesCreateNewStates | CompletedStateBeforeTransitionSourceFailsTransition,
}
Values
| Name | Remarks |
|---|---|
| None | Previous (UE 5.6) rules |
| CompletedTransitionStatesCreateNewStates | If the transition source state or the transition target state (or any child states of the source or target) is completed, then the completed states are new (recreated if needed). |
| CompletedStateBeforeTransitionSourceFailsTransition | The transition will fail if there is a completed state before the transition source state. |
| ReselectedStateCreatesNewStates | When selecting a parent state(from a child), the target child states are new (recreated if needed). |
| Default |