Can't see AIPerception detais

LightCanadian
Sat, 20 Feb 2021 19:19:07 +0000
C++

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?

2 posts - 1 participant