UProjectileMovementComponent

I am trying to add a projectile to my game. I added this UProperty to my projectile class as seen below:

    /** movement component */
	UPROPERTY(VisibleDefaultsOnly, Category = Projectile)
	TSubobjectPtr<UProjectileMovementComponent> MovementComp;

I keep getting this error and I don’t know why. I have seen this be used in other programs.

Error: identifier "UProjectileMovementComponent" is undefined
error C2065: 'UProjectileMovementComponent ': undeclared identifier
error C2923: 'TSubobjectPtr': 'UProjectileMovementComponent' is not a valid template type argument

It seems to not know what UProjectileMovementComponent is. I thought it was a standard type in the UE4. I am using unreal engine 4.4.3 if that helps narrow the problem down.

#Answer

Go into YourGame.h

Change

#include "EngineMinimal.h"

to

#include "Engine.h"

#:heart:

Rama

Another solution is to simply add:

#include "GameFramework/ProjectileMovementComponent.h"