Could you explain why using the FName is necessary? I was hoping to avoid using FNames, in case I had to refactor and change some stuff. Are TObjectPtrs not compatible with input binding?
EDIT:
The error went away, but after testing the the input, the input is not detected. It seems like the UObject that has to be bound must be a raw pointer
EDIT to EDIT:
The code @Extrone gave had no problems, just needed to tag the Member function with UFUNCTION, now that it’s binding by the function name.
The code builds properly when binding by the function name but the input is buggy for some reason and doesn’t respond to the keys sometimes. I suppose just using a regular raw pointer is solution, as opposed to using a TObjectPtr.