Navigation
API > API/Runtime > API/Runtime/AIModule > API/Runtime/AIModule/Perception
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UAISubsystem
- UAIPerceptionSystem
References
| Module | AIModule |
| Header | /Engine/Source/Runtime/AIModule/Classes/Perception/AIPerceptionSystem.h |
| Include | #include "Perception/AIPerceptionSystem.h" |
Syntax
class UAIPerceptionSystem : public UAISubsystem
Remarks
By design checks perception between hostile teams
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32: 1 | bHandlePawnNotification | ||
| TArray< FDelayedStimulus > | DelayedStimuli | ||
| AIPerception::FListenerMap | ListenerContainer | ||
| double | NextStimuliAgingTick | Timestamp of the next stimuli aging | |
| float | PerceptionAgingRate | ||
| TMap< const AActor *, FPerceptionStimuliSource > | RegisteredStimuliSources | Not a UPROPERTY on purpose so that we have a control over when stuff gets removed from the map | |
| TArray< TObjectPtr< UAISense > > | Senses | ||
| TArray< FPerceptionSourceRegistration > | SourcesToRegister | ||
| FActorEndPlaySignature::FDelegate | StimuliSourceEndPlayDelegate |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UAIPerceptionSystem
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AgeStimuli
(
const float Amount |
Returns true if aging resulted in tagging any of the listeners to process its stimuli ( | |
| bool | DeliverDelayedStimuli
(
EDelayedStimulusSorting Sorting |
Sorts DelayedStimuli and delivers all the ones that are no longer "in the future" | |
| UAIPerceptionSystem * | GetCurrent
(
UWorld& World |
||
| UAIPerceptionSystem * | GetCurrent
(
UObject* WorldContextObject |
||
| AIPerception::FListenerMap & | |||
| TSubclassOf< UAISense > | GetSenseClassForStimulus
(
UObject* WorldContextObject, |
||
| bool | IsSenseInstantiated
(
const FAISenseID& SenseID |
||
| void | MakeNoiseImpl
(
AActor* NoiseMaker, |
||
| void | OnEvent
(
const FEventClass& Event |
||
| void | |||
| void | OnEventsBatch
(
const TArray< FEventClass >& Events |
||
| void | OnListenerConfigUpdated
(
FAISenseID SenseID, |
||
| void | OnListenerForgetsActor
(
const UAIPerceptionComponent& Listener, |
||
| void | OnListenerForgetsAll
(
const UAIPerceptionComponent& Listener |
||
| void | OnListenerRemoved
(
const FPerceptionListener& UpdatedListener |
||
| void | OnListenerUpdate
(
const FPerceptionListener& UpdatedListener |
||
| void | OnNewListener
(
const FPerceptionListener& NewListener |
||
| void | |||
| void | OnPerceptionStimuliSourceEndPlay
(
AActor* Actor, |
||
| void | |||
| void | RegisterAllPawnsAsSourcesForSense
(
FAISenseID SenseID |
Iterates over all pawns and registeres them as a source for sense indicated by SenseID. | |
| void | RegisterDelayedStimulus
(
FPerceptionListenerID ListenerId, |
||
| bool | RegisterPerceptionStimuliSource
(
UObject* WorldContextObject, |
||
| FAISenseID | RegisterSenseClass
(
TSubclassOf< UAISense > SenseClass |
||
| void | RegisterSource
(
AActor& SourceActor |
Registers given actor as a source for all registered senses | |
| void | RegisterSource
(
AActor& SourceActor |
Registers a source of given sense's stimuli | |
| void | RegisterSource
(
FAISenseID SenseID, |
Requests registration of a given actor as a perception data source for specified sense | |
| void | RegisterSourceForSenseClass
(
TSubclassOf< UAISense > Sense, |
||
| void | ReportEvent
(
UAISenseEvent* PerceptionEvent |
||
| void | ReportPerceptionEvent
(
UObject* WorldContextObject, |
||
| void | StartPlay () |
||
| void | UnregisterListener
(
UAIPerceptionComponent& Listener |
||
| void | UnregisterSource
(
AActor& SourceActor, |
Unregisters given actor from the list of active stimuli sources | |
| void | UpdateListener
(
UAIPerceptionComponent& Listener |
Registers listener if not registered |
Overridden from FTickableObjectBase
| Type | Name | Description | |
|---|---|---|---|
| TStatId | GetStatId () |
Return the stat id to use for this tickable | |
| void | Tick
(
float DeltaTime |
FTickableGameObject begin. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FDelayedStimulus | |||
| FPerceptionSourceRegistration |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EDelayedStimulusSorting |