In your custom class, which class are you inheriting from? In my example, UYourComponentNameHere is inheriting from UActorComponent.
In your custom class, which class are you inheriting from? In my example, UYourComponentNameHere is inheriting from UActorComponent.