UShapeComponent* not Working

Hi, this is a noob question but how do i fix the following issue. I am trying to learn how to create pickups using an online tutorial video and it told me to use UShapeComponent but it the compiler does not identify it.

	UShapeComponent* killerObjectShape;

Make sure that you’re importing the proper file.

At the bottom of the reference page, you can see that it’s declared in ShapeComponent.h. You’ll have to import that file to access the class.

A better approach is to use Forward Declaration.

Add this to your header class, above the UCLASS macro:

class UShapeComponent;

Then in your .cpp file, include the ShapeComponent.h header.

Where possible, you should avoid including headers in other headers. Doing that quickly results in circular dependencies and bloated binaries.