unreal.StateTreeTransition¶
- class unreal.StateTreeTransition(trigger: StateTreeTransitionTrigger = 0, state: StateTreeStateLink = [], conditions: None = [], transition_enabled: bool = False)¶
Bases:
StructBaseEditor representation of a transition in StateTree
C++ Source:
Plugin: StateTree
Module: StateTreeEditorModule
File: StateTreeState.h
Editor Properties: (see get_editor_property/set_editor_property)
conditions(Array[StateTreeEditorNode]): [Read-Write] Expression of conditions that need to evaluate to true to allow transition to be triggered.delay_duration(float): [Read-Write] Transition delay duration in seconds.delay_random_variance(float): [Read-Write] Transition delay random variance in seconds.delay_transition(bool): [Read-Write] Delay the triggering of the transition.delegate_listener(StateTreeTransitionDelegateListener): [Read-Write] Listener to the selected delegate dispatcher.id(Guid): [Read-Write]priority(StateTreeTransitionPriority): [Read-Write] Transition priority when multiple transitions happen at the same time. During transition handling, the transitions are visited from leaf to root. The first visited transition, of highest priority, that leads to a state selection, will be activated.reactivate_target_state(StateTreeTransitionChangeTypeRules): [Read-Write] The target state and all the following states will be reactivated. Their instance data will be reinstantiated and will receive EnterState. Note: Only enabled when target state is within the nested state (Parent or self). As this only changes behavior for nested states.required_event(StateTreeEventDesc): [Read-Write] Defines the event required to be present during state selection for the transition to trigger.state(StateTreeStateLink): [Read-Write] Transition target state.transition_enabled(bool): [Read-Write] True if the Transition is Enabled (i.e. not explicitly disabled in the asset).trigger(StateTreeTransitionTrigger): [Read-Write] When to try trigger the transition.
- property conditions: None¶
[Read-Only] Expression of conditions that need to evaluate to true to allow transition to be triggered.
- Type:
- property event: StateTreeTransitionTrigger¶
‘event’ was renamed to ‘trigger’.
- Type:
- property state: StateTreeStateLink¶
[Read-Only] Transition target state.
- Type:
- property transition_enabled: bool¶
[Read-Only] True if the Transition is Enabled (i.e. not explicitly disabled in the asset).
- Type:
(bool)
- property trigger: StateTreeTransitionTrigger¶
[Read-Only] When to try trigger the transition.
- Type: