Download

Can't register UAISense_Sight with UAIPerceptionStimuliSourceComponent

I’m trying to register a sight sense with the perception stimuli source component and compiles fine but when I go to my Character and look at the PlayerStimuliSource component, there’s 0 senses registered.

PlayerCharacter.h



UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Player)
class UAIPerceptionStimuliSourceComponent* PlayerStimuliSource;


PlayerCharacter.cpp



PlayerStimuliSource = CreateDefaultSubobject<UAIPerceptionStimuliSourceComponent>(TEXT("PlayerStimuliSource"));
PlayerStimuliSource->RegisterForSense(TSubclassOf<UAISense_Sight>());


Capture.PNG

Did you find a solution to this - I have the same problem!