Reparent a Blueprint Component to a C++ Actor Component

Hi,
I am porting some functionality of a Blueprint Actor Component to C++. I created a de C++ Class Actor Component and I am trying to reparent my Blueprint Actor Component class but the new C++ class does not appear in dropdown of the new parent classes.

My class is defined as:
UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
class VEHICLECROSSING_API UVehicleComponent : public UActorComponent

My Blueprint class’ parent is currently Actor Component.

Thanks!

1 Like

Try to add the blueprintable if this helps:

UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent), Blueprintable )

Might not be needed if it is inherited from base class that has Blueprintable set.

I also remember, that I had issues that could only be solved by closing the editor, build in VS and then restart the editor for the reparenting.

5 Likes

Thank you, that actually did the trick.

1 Like