Hello,
The reason for this is that the First Person Template includes EngineMinimal.h in your project’s header file. The easiest thing to do would be to include Engine.h in your Actor Component class, as this will resolve your compiler error. Otherwise, you can go into your project’s header file and include Engine.h if you plan to use the features of that class in multiple classes in your project.
Have a great day