Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UInputComponent > API/Runtime/Engine/Components/UInputComponent/BindAction
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/InputComponent.h |
| Include | #include "Components/InputComponent.h" |
template<class UserClass>
FInputActionBinding & BindAction
&40;
const FName ActionName,
const EInputEvent KeyEvent,
UserClass &42; Object,
typename FInputActionHandlerSignature::TMethodPtr< UserClass > Func
&41;
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.