unreal.StateTreeState

class unreal.StateTreeState(outer: Object | None = None, name: Name | str = 'None')

Bases: Object

Editor representation of a state in StateTree

C++ Source:

  • Plugin: StateTree

  • Module: StateTreeEditorModule

  • File: StateTreeState.h

Editor Properties: (see get_editor_property/set_editor_property)

  • color_ref (StateTreeEditorColorRef): [Read-Write] Display color of the State

  • enabled (bool): [Read-Write]

  • enter_conditions (Array[StateTreeEditorNode]): [Read-Write]

  • id (Guid): [Read-Write]

  • linked_asset (StateTree): [Read-Write] Another State Tree asset to run as extension of this State.

  • linked_subtree (StateTreeStateLink): [Read-Write] Subtree to run as extension of this State.

  • name (Name): [Read-Write] Display name of the State

  • parameters (StateTreeStateParameters): [Read-Write] Parameters of this state. If the state is linked to another state or asset, the parameters are for the linked state.

  • selection_behavior (StateTreeStateSelectionBehavior): [Read-Write] How to treat child states when this State is selected.

  • single_task (StateTreeEditorNode): [Read-Write] Single item used when schema calls for single task per state.

  • tasks (Array[StateTreeEditorNode]): [Read-Write]

  • transitions (Array[StateTreeTransition]): [Read-Write]

  • type (StateTreeStateType): [Read-Write] Type the State, allows e.g. states to be linked to other States.