Navigation
API > API/Runtime > API/Runtime/AIModule
| Name | UAISense_Sight |
| Type | class |
| Header File | /Engine/Source/Runtime/AIModule/Classes/Perception/AISense_Sight.h |
| Include Path | #include "Perception/AISense_Sight.h" |
Syntax
UCLASS (ClassGroup=AI, Config=Game, MinimalAPI)
class UAISense_Sight : public UAISense
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UAISense → UAISense_Sight
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UAISense_Sight
(
const FObjectInitializer& ObjectInitializer |
Perception/AISense_Sight.h |
Structs
| Name | Remarks |
|---|---|
| FDigestedSightProperties |
Enums
Public
| Name | Remarks |
|---|---|
| EVisibilityResult |
Protected
| Name | Remarks |
|---|---|
| FQueriesOperationPostProcess |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FTargetsContainer | TMap< FAISightTarget::FTargetId, FAISightTarget > | Perception/AISense_Sight.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bSightQueriesOutOfRangeDirty | bool | Perception/AISense_Sight.h | ||
| DigestedProperties | TMap< FPerceptionListenerID, FDigestedSightProperties > | Perception/AISense_Sight.h | ||
| NextOutOfRangeIndex | int32 | The SightQueries are a n^2 problem and to reduce the sort time, they are now split between in range and out of range Since the out of range queries only age as the distance component of the score is always 0, there is few need to sort them In the majority of the cases most of the queries are out of range, so the sort time is greatly reduced as we only sort the in range queries | Perception/AISense_Sight.h | |
| ObservedTargets | FTargetsContainer | Perception/AISense_Sight.h | ||
| SightQueriesInRange | TArray< FAISightQuery > | Perception/AISense_Sight.h | ||
| SightQueriesOutOfRange | TArray< FAISightQuery > | Perception/AISense_Sight.h | ||
| SightQueriesPending | TArray< FAISightQuery > | Perception/AISense_Sight.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void RegisterEvent
(
const FAISightEvent& Event |
Perception/AISense_Sight.h |
Overridden from UAISense
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnListenerForgetsActor
(
const FPerceptionListener& Listener, |
Perception/AISense_Sight.h | ||
virtual void OnListenerForgetsAll
(
const FPerceptionListener& Listener |
Perception/AISense_Sight.h | ||
virtual void RegisterSource
(
AActor& SourceActors |
Virtual void RegisterSources(TArray |
Perception/AISense_Sight.h | |
virtual void UnregisterSource
(
AActor& SourceActor |
Perception/AISense_Sight.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostInitProperties() |
Perception/AISense_Sight.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float CalcQueryImportance
(
const FPerceptionListener& Listener, |
Perception/AISense_Sight.h | ||
EVisibilityResult ComputeVisibility
(
UWorld* World, |
Perception/AISense_Sight.h | ||
void GenerateQueriesForListener
(
const FPerceptionListener& Listener, |
Perception/AISense_Sight.h | ||
void OnListenerRemovedImpl
(
const FPerceptionListener& RemovedListener |
Perception/AISense_Sight.h | ||
void OnListenerUpdateImpl
(
const FPerceptionListener& UpdatedListener |
Perception/AISense_Sight.h | ||
void OnNewListenerImpl
(
const FPerceptionListener& NewListener |
Perception/AISense_Sight.h | ||
void OnPendingCanBeSeenQueryProcessed
(
const FAISightQueryID& QueryID, |
Perception/AISense_Sight.h | ||
| Perception/AISense_Sight.h | |||
void OnPendingTraceQueryProcessed
(
const FTraceHandle& TraceHandle, |
Perception/AISense_Sight.h | ||
bool RegisterNewQuery
(
const FPerceptionListener& Listener, |
Perception/AISense_Sight.h | ||
bool RegisterTarget
(
AActor& TargetActor, |
Returns information whether new LoS queries have been added | Perception/AISense_Sight.h | |
void RemoveAllQueriesByListener
(
const FPerceptionListener& Listener, |
Perception/AISense_Sight.h | ||
void RemoveAllQueriesToTarget
(
const FAISightTarget::FTargetId& TargetId, |
Perception/AISense_Sight.h | ||
void RemoveAllQueriesToTarget_Internal
(
const FAISightTarget::FTargetId& TargetId, |
RemoveAllQueriesToTarget version that need to already have a write access on QueriesListAccessDetector | Perception/AISense_Sight.h | |
virtual bool ShouldAutomaticallySeeTarget
(
const FDigestedSightProperties& PropDigest, |
Perception/AISense_Sight.h | ||
void UpdateQueryVisibilityStatus
(
FAISightQuery& SightQuery, |
Perception/AISense_Sight.h | ||
void UpdateQueryVisibilityStatus
(
FAISightQuery& SightQuery, |
Perception/AISense_Sight.h |
Overridden from UAISense
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnListenerConfigUpdated
(
const FPerceptionListener& UpdatedListener |
Perception/AISense_Sight.h | ||
virtual float Update() |
Perception/AISense_Sight.h |