I got a strange “recompilation” error when trying to compile the C++ code after adding in the UProjectileMovementComponent variable and subobject. I am using a later version of the Unreal Engine (4.20.3 precisely), so I have had to #include “GameFramework/ProjectileMovementComponent.h.” In Visual Studios, no error appears. Any help around this issue would be appreciated.
Screenshots of Code and Unreal Engine Log: