Can't see AIPerception detais

I want to add a perception component to a character, I was able to add the component, but nothing appears in the details section in the blueprint. Here’s how I did it:

.h

 private: 
 UPROPERTY(EditAnywhere) 
 class UAIPerceptionComponent* AIPerception;

.cpp

AIPerception = CreateDefaultSubobject<UAIPerceptionComponent>(TEXT("Sense"));
AIPerception->RegisterComponent();

Am I missing something?

I figured it out, I just changed it for this:

AIPerception = CreateDefaultSubobject<UAIPerceptionComponent>(TEXT("Sense"));
AIPerception->RegisterComponent();
AIPerception->bEditableWhenInherited = true;