No properties below 'Detection by Affiliation' when AIPerceptionComponent is added by c++

211103-property.jpg

211104-component.jpg

header :

UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "AI Perception")
UAIPerceptionComponent* AIPerceptionComponent;

cpp :

ADungeonAIController::ADungeonAIController(const FObjectInitializer& ObjectInitializer)
	: AAIController(ObjectInitializer)
{
	AIPerceptionComponent = CreateDefaultSubobject<UAIPerceptionComponent>("AIPerception");
}

Did you figure this out yet? I just added it for the first time in c++ and getting the same thing.

Didn’t figure out how to make it visible, but you can set the values through the right-click dialog.

  1. Copy this to your clipboard:

    (bDetectEnemies=True,bDetectNeutrals=True,bDetectFriendlies=True)

  2. Right click on “Detection by Affiliation”

  3. Paste

Done!

Another fix for this is to click on the Open Selection In Property Matrix icon on the top right of the details panel where you edit the Sense settings. In that menu you can access the affiliation checkboxes.