UUserWidget::ListenForInputAction

Listens for a particular Player Input Action by name.

Windows
MacOS
Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Blueprint/UserWidget.h

Include

#include "Blueprint/UserWidget.h"

Source

/Engine/Source/Runtime/UMG/Private/UserWidget.cpp

Syntax

void ListenForInputAction
(
    FName ActionName,
    TEnumAsByte< EInputEvent > EventType,
    bool bConsume,
    FOnInputAction Callback
)

Remarks

Listens for a particular Player Input Action by name. This requires that those actions are being executed, and that we're not currently in UI-Only Input Mode.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss