Answers for "unreal engine c++ bind action to function with parameter"

C++
0

unreal engine c++ bind action to function with parameter

DECLARE_DELEGATE_OneParam(FCustomInputDelegate, const bool);
InputComponent->BindAction<FCustomInputDelegate>("OnSomeInput", IE_Pressed, this, &AMyActor::OnInput, true);

DECLARE_DELEGATE_TwoParams(FAnotherCustomInputDelegate, const bool, const float);
InputComponent->BindAction<FAnotherCustomInputDelegate>("OnSomeOtherInput", IE_Pressed, this, &AMyActor::OnOtherInput, true, 10.f);
Posted by: Guest on October-21-2021

Code answers related to "unreal engine c++ bind action to function with parameter"

Browse Popular Code Answers by Language