unreal.InputTriggerTimedBase

class unreal.InputTriggerTimedBase(outer=None, name='None')

Bases: unreal.InputTrigger

Base class for building triggers that have firing conditions governed by elapsed time. This class transitions state to Ongoing once input is actuated, and will track Ongoing input time until input is released. Inheriting classes should provide the logic for Triggered transitions.

C++ Source:

  • Plugin: EnhancedInput

  • Module: EnhancedInput

  • File: InputTriggers.h

Editor Properties: (see get_editor_property/set_editor_property)

  • actuation_threshold (float): [Read-Write] Actuation Threshold

  • affected_by_time_dilation (bool): [Read-Write] Should global time dilation be applied to the held duration?

  • held_duration (float): [Read-Write] Held Duration

  • last_value (InputActionValue): [Read-Write] Value passed to UpdateState on the previous tick. This will be updated automatically after the trigger is updated.

property affected_by_time_dilation

[Read-Write] Should global time dilation be applied to the held duration?

Type

(bool)

property held_duration

[Read-Write] Held Duration

Type

(float)