Make variable setting's be enabled in the editor

I have a pawn class which contains the following:

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Components")
		class UMeshComponent* meshComponent;

And in the constructor:

meshComponent = ObjectInitializer.CreateDefaultSubobject<UMeshComponent>(this, TEXT("Mesh Component"));
meshComponent->AttachTo(RootComponent);

I have created a blueprint with that class and I can not see the variable setting’s:


Why? I have the EditAnywhere property. I also tried to add Blueprintable in the UClass.

Your blueprint class is a subclass of your C++ class.

Click the view options drop down menu(the eye to the right of the search box) in the “My Blueprint” tab and tick “Show Inherited Variables”.