AActor::NotifyActorOnInputTouchEnter
#include "GameFramework/Actor.h"
Access: public
Specifiers: virtual
Description
Called when a touch finger moves onto this actor while touch-events are enabled, analogous to NotifyActorBeginCursorOver but for touchscreen input.
Caveats & Gotchas
- • Requires bEnableTouchOverEvents on the PlayerController; this is distinct from bEnableClickEvents and bEnableMouseOverEvents — all three are independent flags.
- • FingerIndex allows tracking up to 10 simultaneous touch points (Touch1–Touch10 via ETouchIndex), but most mobile UE projects only handle Touch1.
Signature
ENGINE_API virtual void NotifyActorOnInputTouchEnter(const ETouchIndex::Type FingerIndex); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| FingerIndex | ETouchIndex::Type | Which finger (touch index) moved over the actor. | — |
Return Type
void Example
Highlight on touch hover C++
void AMyActor::NotifyActorOnInputTouchEnter(const ETouchIndex::Type FingerIndex)
{
Super::NotifyActorOnInputTouchEnter(FingerIndex);
SetActorScale3D(FVector(1.1f)); // Scale up slightly as hover feedback
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?