Thank you very much for your answer. InputAction cannot inherit from a C++ function, so I marked the C++ function as BlueprintCallable and called it from the Blueprint.
Thank you very much for your answer. InputAction cannot inherit from a C++ function, so I marked the C++ function as BlueprintCallable and called it from the Blueprint.