Static Mesh Details not showing in Blueprint

When creating a blueprint based off of the Tower class, static mesh details wont show up. Any idea how I can fix that?

Tower.h

    private:
	        UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Mesh, meta = (AllowPrivateAccess = "true"))
	        UStaticMeshComponent* TowerMesh;

Tower.cpp

ATower::ATower()
{
	//Root Component - BoxComponent
	UBoxComponent* BoxComponent = CreateDefaultSubobject<UBoxComponent>(TEXT("RootComponent"));
	RootComponent = BoxComponent;
	BoxComponent->InitBoxExtent(FVector(width, height, depth));
	BoxComponent->SetCollisionProfileName(TEXT("Tower"));

	//Create mesh component
	TowerMesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("TowerMesh"));
	TowerMesh->AttachTo(RootComponent);

}

I’m experiencing this in 4.16.1 as well, but with a SkeletalMeshComponent. Searching around, it looks like dozens of people have reported this problem, with no solution in sight.

Try changing:

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Mesh, meta = (AllowPrivateAccess = "true"))

to:

UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = Mesh, meta = (AllowPrivateAccess = "true"))
1 Like

Thank you, this solved the issue for me :slight_smile:

1 Like

I had a similar problem. At some point a details panel in BP editor for my StaticMeshComponent stopped showing its content. No other advice I found helped me, including creating new parallel copy of problematic class’ hierarchy.

I changed:
UPROPERTY(BlueprintReadOnly)

to:
UPROPERTY(VisibleAnywhere)

And everything is working fine now. Thank you.