Why can't i create Staticmesh on character class

Hi! i’m new to coding in c++
Here my question. I have create 3 CreateDefaultSubobject but the StaticMesh is not show. What can i do to fix this

Thank you.
My Cpp

VRRoot = CreateDefaultSubobject<USceneComponent>(TEXT("VRRoot"));
VRRoot->SetupAttachment(GetRootComponent());

Camera = CreateDefaultSubobject<UCameraComponent>(TEXT("Camera"));
Camera->SetupAttachment(VRRoot);

DestinationMarker = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("DestinationMarker"));
DestinationMarker->SetupAttachment(GetRootComponent());

My h

UPROPERTY()
class UCameraComponent* Camera;
class USceneComponent* VRRoot;
UPROPERTY(VisibleAnywhere)
class UStaticMeshComponent* DestinationMarker;

It happens with me sometime.
What I did was,

  • Close the UE4 editor.
  • After the project compiled over IDE, then will launch the editor which brings the changes most of the time.

After a several compile it manage to appear.
Have a good day to all!