C++ component not shown in blueprint editor??

UCLASS(Blueprintable, BlueprintType, ClassGroup = (Custom), meta = (BlueprintSpawnableComponent))
class DLCOREUTIL_API USplineEx : public USplineMeshComponent

Have a class like this. It just doesn’t show up in the blueprint editor.

Instead, if I subclass USceneComponent, it shows up fine.
It won’t work if I subclass USplineMeshComponent or UStaticMeshComponent etc.

Can someone explain?


Only thing I can think of is you have some sort of caching issue. Try to clean rebuild the project, if that doesn’t work delete your intermediates folder and regenerate project files.

UCLASS(Blueprintable, BlueprintType, ClassGroup = (Custom), meta = (BlueprintSpawnableComponent))
class MYPROJECT_API UMySplineMeshComponent : public USplineMeshComponent

is what I used in a blank project on 4.22 and had it show up in my custom components list.

tried every caching related solution, still no good

Solution Found. sort of…

If I add the BeginPlay to this class, it shows up correctly

virtual void BeginPlay() override;

However, consider what @MJBrune said, he actually got it showing without the BeginPlay().

So I’d really like to know: is this a feature or bug?