Bind key input to ActorComponent function?
Is it possible somehow to bind a Input key event to a function in my custom ActorComponent?
Something like this: InputComponent->BindAction("MoveForward", IE_Released, this,&UMyActorComponent::Something);
asked Nov 28 '14 at 08:10 PM in C++ Programming
You should be able to from a purely C++ standpoint. I don't know how the BindAction function will react to it though. The pointer you will have to pass on is a pointer to the component instead of the this pointer. Alternatively, you should be able to make a delegate out of any function and use the bindaction with that delegate.
answered Nov 30 '14 at 02:31 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here