If AIPerceptionComponent is set in code, a blueprint of the associated class cannot edit the Detection by Affiliation setting in the details panel for the component.
public:
AMyAIController();
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Test)
UAIPerceptionComponent* PerceptionComp;
AMyAIController::AMyAIController()
{
PerceptionComp= CreateDefaultSubobject<UAIPerceptionComponent>(TEXT("PerceptionComp"));
}
Result:
Detection by Affiliation setting does not have dropdown for different options
Expected:
Adding AIPerceptionComponent through the code allows DbA to "Detect Enemies/Neutrals/Friendlies"
Head over to the existing Questions & Answers thread and let us know what's up.
| 55 |
| Fix Commit | 2782469 |
|---|---|
| Main Commit | 2787214 |
| Created | Jul 9, 2015 |
|---|---|
| Resolved | Aug 18, 2021 |
| Updated | May 4, 2023 |
| 5619 - projectgheist |