UInputComponent::BindAction

Binds a delegate function to an Action defined in the project settings.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/InputComponent.h

Include

#include "Components/InputComponent.h"

Syntax

template<class UserClass>
FInputActionBinding & BindAction
(
    const FName ActionName,
    const EInputEvent KeyEvent,
    UserClass * Object,
    typename FInputActionHandlerSignature::TUObjectMethodDelegate< UserClass >::FMethodPtr Func
)

Remarks

Binds a delegate function to an Action defined in the project settings. Returned reference is only guaranteed to be valid until another action is bound.

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