You have to set the UPROPERTY as follows
UPROPERTY(VisibleDefaultsOnly, Category = "Meshes")
UStaticMeshComponent* TargetMesh;
this worked for me!
You have to set the UPROPERTY as follows
UPROPERTY(VisibleDefaultsOnly, Category = "Meshes")
UStaticMeshComponent* TargetMesh;
this worked for me!