AI Sense Sight
About
By default you will only get an update OnPerceptionChange which means From "visible" to "not visible" or vice versa..
To change it to something else like OnEveryPerception (“Continuous update whenever target is perceived”) you need to subclass the AI Sense and change the NotifyType in the constructor.
See
EAISenseNotifyType NotifyTypeinUAISense
Warning about not using
OnPerceptionChangeIf not using the default behavior
UAISense::WantsUpdateOnlyOnPerceptionValueChangewill be false, makingOnTargetPerceptionForgottendelegate never called inUAIPerceptionComponent::ProcessStimuliwhen age expired. This is setup in theFAIStimulusconstructor, see howbWantsToNotifyOnlyOnValueChangeis initialized.
Custom sight detection per actor
See IAISightTargetInterface with CanBeSeenFrom.