UInputTriggerHoldAndRelease

[UInputTriggerHoldAndRelease](API\Plugins\EnhancedInput\UInputTriggerHoldAndRelease) Trigger fires when input is released after having been actuated for at least HoldTimeThreshold seconds.

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(NotBlueprintable, MinimalAPI, Meta=(DisplayName="Hold And Release"))
class UInputTriggerHoldAndRelease : public UInputTriggerTimedBase

Remarks

UInputTriggerHoldAndRelease Trigger fires when input is released after having been actuated for at least HoldTimeThreshold seconds.

Variables

Name Description

Public variable UProperty Category, EditAnywhere, Meta BlueprintReadWrite Config

float

 

HoldTimeThreshold

How long does the input have to be held to cause trigger?

Overridden from UInputTrigger

Name Description

Protected function Virtual

ETriggerStat...

 

UpdateState_Implementation

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

Transitions to Ongoing on actuation. Never triggers.