unreal.InputActionInstance

class unreal.InputActionInstance(source_action: InputAction = Ellipsis, trigger_event: TriggerEvent = 0, last_triggered_world_time: float = 0.0, triggers: None = [], modifiers: None = [], elapsed_processed_time: float = 0.0, elapsed_triggered_time: float = 0.0)

Bases: StructBase

Run time queryable action instance Generated from UInputAction templates above

C++ Source:

  • Plugin: EnhancedInput

  • Module: EnhancedInput

  • File: InputAction.h

Editor Properties: (see get_editor_property/set_editor_property)

  • elapsed_processed_time (float): [Read-Write] Total trigger processing/evaluation time (How long this action has been in event Started, Ongoing, or Triggered

  • elapsed_triggered_time (float): [Read-Write] Triggered time (How long this action has been in event Triggered only)

  • last_triggered_world_time (float): [Read-Write] The last time that this evaluated to a Triggered State

  • modifiers (Array[InputModifier]): [Read-Write]

  • source_action (InputAction): [Read-Write] The source action that this instance is created from

  • trigger_event (TriggerEvent): [Read-Write] Trigger state

  • triggers (Array[InputTrigger]): [Read-Write]

property elapsed_processed_time: float

[Read-Only] Total trigger processing/evaluation time (How long this action has been in event Started, Ongoing, or Triggered

Type:

(float)

property elapsed_triggered_time: float

[Read-Only] Triggered time (How long this action has been in event Triggered only)

Type:

(float)

property last_triggered_world_time: float

[Read-Only] The last time that this evaluated to a Triggered State

Type:

(float)

property modifiers: None

[Read-Only]

Type:

(Array[InputModifier])

property source_action: InputAction

[Read-Only] The source action that this instance is created from

Type:

(InputAction)

property trigger_event: TriggerEvent

[Read-Only] Trigger state

Type:

(TriggerEvent)

property triggers: None

[Read-Only]

Type:

(Array[InputTrigger])