UInputTriggerTimedBase

Base class for building triggers that have firing conditions governed by elapsed time.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

EnhancedInput

Header

/Engine/Plugins/Experimental/EnhancedInput/Source/EnhancedInput/Public/InputTriggers.h

Include

#include "InputTriggers.h"

Syntax

UCLASS(Abstract, MinimalAPI, Config=Input)
class UInputTriggerTimedBase : public UInputTrigger

Remarks

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.

Variables

Name Description

Public variable UProperty Category, EditAnywhere BlueprintReadWrite Config

bool

 

bAffectedByTimeDilation

Should global time dilation be applied to the held duration? Default is set to false.

Protected variable UProperty Category BlueprintReadWrite

float

 

HeldDuration

How long have we been actuating this trigger?

Functions

Name Description

Protected function Const

float

 

CalculateHeldDuration

(
    const UEnhancedPlayerInput*con...,
    const float DeltaTime
)

Calculates the new held duration given the current player input and delta time.

Overridden from UInputTrigger

Name Description

Public function Virtual Const

FString

 

GetDebugState()

Provide debug output for use with ShowDebug EnhancedInput. Return an empty string to disable display.

Public function Virtual Const

ETriggerEven...

 

GetSupportedTriggerEvents()

Determines what kind of trigger events can happen from the behavior of this trigger.

Protected function Virtual

ETriggerStat...

 

UpdateState_Implementation

(
    const UEnhancedPlayerInput* Pl...,
    FInputActionValue ModifiedValue,
    float DeltaTime
)

Transitions to Ongoing on actuation. Never triggers.