I’ve defined two StaticMeshComponents in my header file, and set them up correctly in my .cpp file.
Header
public:
FORCEINLINE UStaticMeshComponent* GetPerigeeBillboard() const { return PerigeeBillboard; }
FORCEINLINE UStaticMeshComponent* GetApogeeBillboard() const { return ApogeeBillboard; }
UPROPERTY(VisibleDefaultsOnly, BlueprintReadOnly, Category = "TLE Visualization")
UStaticMeshComponent* PerigeeBillboard;
UPROPERTY(VisibleDefaultsOnly, BlueprintReadOnly, Category = "TLE Visualization")
UStaticMeshComponent* ApogeeBillboard;
CPP Constructor
ApogeeBillboard = ObjectInitializer.CreateDefaultSubobject<UStaticMeshComponent>(this, TEXT("ApogeeBillboard"));
GetApogeeBillboard()->bAbsoluteLocation = true;
GetApogeeBillboard()->AttachParent = CollisionSphere;
PerigeeBillboard = ObjectInitializer.CreateDefaultSubobject<UStaticMeshComponent>(this, TEXT("PerigeeBillboard"));
GetPerigeeBillboard()->bAbsoluteLocation = true;
GetPerigeeBillboard()->AttachParent = GetCollisionSphere();
However, the resulting blueprints don’t allow me to actually access any of the details of the mesh at all, and what’s strange is if I make it an ‘EditDefaultsOnly’ Property, I am given the option to use a dropdown box of different childs of the StaticMeshComponent class, which when selected created broken instances of the static mesh component.
Components View - No Details?
Details Panel View - None, Or drop-down box when set to 'EditDefaultsOnly’
Any ideas why this is? I have another class that uses this exact same set-up (but only one mesh), and it exposes the details panel just fine!