No need to #include "Components/InputComponent.h"

Don’t need to update the includes in Grabber.h to add #include “Components/InputComponent.h”
Since #include “Components/ActorComponent.h” is there and InputComponent inherits from ActorComponent.
I am fairly sure about it and everything compiled and ran without adding the above as mentioned in the videos in regard to using newer versions of the Engine (I’m using 4.21).
If I’m wrong or it’s unnecessary for another reason and thus is compiling, please let me know.

Thanks!

1 Like

@Arbel I’m using 4.20.2 and I see the same thing. It recognizes UInputComponent without the include file. I haven’t verified the extension from ActorComponent but I do have that one in my header file, so that makes sense.

Thanks for posting!

Privacy & Terms