Why is the mesh menu empty?

Use VisibleAnywhere instead of VisibleDefaultsOnly.

If still nothing, open/close the BP.

If still nothing, restart the editor.

I am new to unreal and am facing a weird problem. I would like to insert a mesh on my character but the mesh menu is completely empty. Below is the image of how it looks.

][1]

As you can see, this blueprint class is derived from a class named ‘MainCharacter’. Here is the relevant code snippet.

Implementation (c++) file:

FPSMesh = CreateDefaultSubobject<USkeletalMeshComponent>(TEXT("Mesh"));
FPSMesh->SetupAttachment(FPSCameraComponent);

Header file:

UPROPERTY(VisibleDefaultsOnly, Category = Mesh)
USkeletalMeshComponent *FPSMesh;

The problem started when I switched the USkeletalMeshComponent to a UStaticMeshComponent. I started getting an empty mesh screen. I switched it back to a USkeletalMeshComponent and I am still getting this empty menu.

Any Tips?

I deleted the blueprint and made it again. That solved the issue.