Download

Cannot create BP class from a C++ Class extending from ActorComponent

So I created a class in C++ extending from ActorComponent class.
I wanted to extend that class into a BP class however when creating blueprints, I don’t see my c++ class there. However the actorcomponent class is present and so is some other components extended from the actorcomponent class like Scenecomponent.

Are you sure you are setting the correct UCLASS properties in the component’s header file?

[FONT=courier new]UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
[FONT=courier new]class PLAYGROUND_API UMyActorComponent : public UActorComponent
[FONT=courier new]{
[FONT=courier new] GENERATED_BODY()

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

This made it work “Blueprintable” is the important one.