AActor::OnInputTouchEnd
#include "GameFramework/Actor.h"
Access: public
Specifiers: UPROPERTYBlueprintAssignable
Description
Delegate fired when a touch input that began over this actor is released, while touch events are enabled in the player controller.
Caveats & Gotchas
- • This delegate fires based on the finger that originally touched the actor — if the finger moved off the actor before being lifted, OnInputTouchEnd still fires on this actor, not wherever the finger was when released.
- • Will not fire if the actor is destroyed mid-touch or if EnableInput() was not called on the owning player controller.
Signature
FActorOnInputTouchEndSignature OnInputTouchEnd Example
Bind touch end to trigger an action C++
void AMyButton::BeginPlay()
{
Super::BeginPlay();
OnInputTouchEnd.AddDynamic(this, &AMyButton::HandleTouchEnd);
}
void AMyButton::HandleTouchEnd(ETouchIndex::Type FingerIndex, AActor* TouchedActor)
{
ActivateButton();
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?