I found that AIController Class already had AIPerceptionComponent named PerceptionComponent.
So I use this code
ANPC_AIController::ANPC_AIController()
{
PerceptionComponent = CreateOptionalDefaultSubobject<UAIPerceptionComponent>(TEXT("AIPerception"));
}
and PerceptionComponent now shows in Blueprint class which I just made from C++ Class.
I’m trying to add Senses Config for add AI Sight config.
it goes right in but Detection by Affiliation category don’t have any items in it.
In normal situation there are “Detect Enemy”, “Detect Neutral”, “Detect Friendlies”
any ideas?