Navigation
API > API/Plugins > API/Plugins/StateTreeModule
| Name | EStateTreeStateSelectionBehavior |
| Type | enum |
| Header File | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeTypes.h |
| Include Path | #include "StateTreeTypes.h" |
Syntax
enum EStateTreeStateSelectionBehavior
{
None,
TryEnterState,
TrySelectChildrenInOrder,
TrySelectChildrenAtRandom,
TrySelectChildrenWithHighestUtility,
TrySelectChildrenAtRandomWeightedByUtility,
TryFollowTransitions,
}
Values
| Name | Remarks |
|---|---|
| None | The State cannot be directly selected. |
| TryEnterState | When state is considered for selection, it is selected even if it has child states. |
| TrySelectChildrenInOrder | When state is considered for selection, try to select the first child state (in order they appear in the child list). |
| TrySelectChildrenAtRandom | When state is considered for selection, shuffle the order of child states and try to select the first one. |
| TrySelectChildrenWithHighestUtility | When state is considered for selection, try to select the child state with highest utility score. |
| TrySelectChildrenAtRandomWeightedByUtility | When state is considered for selection, randomly pick one of its child states. |
| TryFollowTransitions | When state is considered for selection, try to trigger the transitions instead. |