Unhandled exception when running code.
The program is meant to log a message whenever the player presses a key, but when i run the code , i get the following error.
The code is:
And this is the header file:
The constructor isn't the problem. I already tried the beginplay and the InputComponent was nullptr... If I call the hack(??) (AActor::EnableInput(this)), I got some assert and it did not response to my action
answered Mar 11 '15 at 05:35 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here