unreal.StateTreeStateSelectionBehavior

class unreal.StateTreeStateSelectionBehavior

Bases: EnumBase

EState Tree State Selection Behavior

C++ Source:

  • Plugin: StateTree

  • Module: StateTreeModule

  • File: StateTreeTypes.h

NONE: StateTreeStateSelectionBehavior = Ellipsis

The State cannot be directly selected.

Type:

0

TRY_ENTER_STATE: StateTreeStateSelectionBehavior = Ellipsis

When state is considered for selection, it is selected even if it has child states.

Type:

1

TRY_FOLLOW_TRANSITIONS: StateTreeStateSelectionBehavior = Ellipsis

When state is considered for selection, try to trigger the transitions instead.

Type:

6

TRY_SELECT_CHILDREN_AT_RANDOM: StateTreeStateSelectionBehavior = Ellipsis

When state is considered for selection, shuffle the order of child states and try to select the first one. If no child states are present, behaves like SelectState.

Type:

3

TRY_SELECT_CHILDREN_AT_RANDOM_WEIGHTED_BY_UTILITY: StateTreeStateSelectionBehavior = Ellipsis

When state is considered for selection, randomly pick one of its child states. The probability of selecting each child state is its normalized utility score

Type:

5

TRY_SELECT_CHILDREN_IN_ORDER: StateTreeStateSelectionBehavior = Ellipsis

When state is considered for selection, try to select the first child state (in order they appear in the child list). If no child states are present, behaves like SelectState.

Type:

2

TRY_SELECT_CHILDREN_WITH_HIGHEST_UTILITY: StateTreeStateSelectionBehavior = Ellipsis

When state is considered for selection, try to select the child state with highest utility score. If there is a tie, it will try to select in order.

Type:

4