Navigation
API > API/Runtime > API/Runtime/AIModule
Should contain only cached information common to all senses. Sense-specific data needs to be stored by senses themselves
| Name | FPerceptionListener |
| Type | struct |
| Header File | /Engine/Source/Runtime/AIModule/Classes/Perception/AIPerceptionTypes.h |
| Include Path | #include "Perception/AIPerceptionTypes.h" |
Syntax
struct FPerceptionListener
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPerceptionListener
(
UAIPerceptionComponent& InListener |
Perception/AIPerceptionTypes.h | ||
| Perception/AIPerceptionTypes.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| NullListener | const FPerceptionListener | Used to remove "dead" listeners | Perception/AIPerceptionTypes.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CachedDirection | FVector | Perception/AIPerceptionTypes.h | ||
| CachedLocation | FVector | Perception/AIPerceptionTypes.h | ||
| Filter | FPerceptionChannelAllowList | Perception/AIPerceptionTypes.h | ||
| Listener | TWeakObjectPtr< UAIPerceptionComponent > | Perception/AIPerceptionTypes.h | ||
| TeamIdentifier | FGenericTeamId | Perception/AIPerceptionTypes.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bHasStimulusToProcess | uint32 | Perception/AIPerceptionTypes.h | ||
| ListenerID | FPerceptionListenerID | Perception/AIPerceptionTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CacheLocation() |
Perception/AIPerceptionTypes.h | ||
const AActor * GetBodyActor() |
Returns pointer to the actor representing this listener's physical body | Perception/AIPerceptionTypes.h | |
FName GetBodyActorName() |
Perception/AIPerceptionTypes.h | ||
uint32 GetBodyActorUniqueID() |
Perception/AIPerceptionTypes.h | ||
FPerceptionListenerID GetListenerID() |
Perception/AIPerceptionTypes.h | ||
const IGenericTeamAgentInterface * GetTeamAgent() |
Perception/AIPerceptionTypes.h | ||
bool HasAnyNewStimuli() |
Perception/AIPerceptionTypes.h | ||
bool HasSense
(
FAISenseID SenseID |
Perception/AIPerceptionTypes.h | ||
void ProcessStimuli() |
Perception/AIPerceptionTypes.h | ||
void RegisterStimulus
(
AActor* Source, |
Perception/AIPerceptionTypes.h | ||
void UpdateListenerProperties
(
UAIPerceptionComponent& Listener |
Perception/AIPerceptionTypes.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator==
(
const UAIPerceptionComponent* Other |
Perception/AIPerceptionTypes.h | ||
bool operator==
(
const FPerceptionListener& Other |
Perception/AIPerceptionTypes.h |