How to add custom component to an actor blueprint?

Hi there,

I need to inherit a class from StaticMeshComponent and add some logic to it so I can add this custom class as a component into my actor blueprint. I tried this and blueprint doesn’t recognize the component so is there a trick here? Should I expose this class to blueprint by some macros?

Thank you for your help.

UCLASS(meta=(BlueprintSpawnableComponent))

Seems to set by default now in UE 4.24 for new components.

1 Like