Hey -
Following steps you provided this is what I did:
Create Actor subclass (MyActor)
Create BP based on MyActor (MyActorBP) and added an instance of BP to level
Create StaticMeshComponent subclass (MySubMesh)
In MyActor.h I included header for MySubMesh and created a pointer variable (UMySubMesh* newMesh)
In MyActor.cpp’s constructor I added function call:
newMesh = CreateDefaultSubobject(TEXT(“newMesh”));
After compiling, instance of BP showed newMesh component in Details panel. No mesh was set since I didn’t define a default mesh in code. Is this same as what you’re experiencing or is there something that I’ve done differently?
Cheers