Navigation
API > API/Runtime > API/Runtime/AIModule
| Name | FAISightQuery |
| Type | struct |
| Header File | /Engine/Source/Runtime/AIModule/Classes/Perception/AISense_Sight.h |
| Include Path | #include "Perception/AISense_Sight.h" |
Syntax
struct FAISightQuery
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAISightQuery
(
FPerceptionListenerID ListenerId, |
Perception/AISense_Sight.h |
Classes
| Name | Remarks |
|---|---|
| FSortPredicate |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bLastResult | uint64 | Perception/AISense_Sight.h | ||
| bLastResult | uint32 | Perception/AISense_Sight.h | ||
| FAISightQuery | union FAISightQuery | Perception/AISense_Sight.h | ||
| FrameInfo | FAISightQuery | We can share the memory for these values because they aren't used at the same time : | Perception/AISense_Sight.h | |
| FrameNumber | uint32 | Perception/AISense_Sight.h | ||
| Importance | float | Perception/AISense_Sight.h | ||
| Index | uint32 | Perception/AISense_Sight.h | ||
| LastProcessedFrameNumber | uint64 | Perception/AISense_Sight.h | ||
| LastSeenLocation | FVector | Perception/AISense_Sight.h | ||
| ObserverId | FPerceptionListenerID | Perception/AISense_Sight.h | ||
| Score | float | Perception/AISense_Sight.h | ||
| TargetId | FAISightTarget::FTargetId | Perception/AISense_Sight.h | ||
| TraceInfo | FAISightQuery | The 'FrameNumber' value can increase indefinitely while the 'Index' represents the number of queries that were already requested during this frame. | Perception/AISense_Sight.h | |
| UserData | int32 | User data that can be used inside the IAISightTargetInterface::CanBeSeenFrom method to store a persistence state | Perception/AISense_Sight.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ForgetPreviousResult() |
Perception/AISense_Sight.h | ||
float GetAge() |
Note: This should only be called on queries that are queued up for later processing (in SightQueriesOutOfRange or SightQueriesOutOfRange) | Perception/AISense_Sight.h | |
bool GetLastResult() |
Perception/AISense_Sight.h | ||
void OnProcessed() |
Perception/AISense_Sight.h | ||
void RecalcScore() |
Note: This should only be called on queries that are queued up for later processing (in SightQueriesOutOfRange or SightQueriesOutOfRange) | Perception/AISense_Sight.h | |
void SetLastResult
(
const bool bValue |
Perception/AISense_Sight.h | ||
void SetTraceInfo
(
const FTraceHandle& TraceHandle |
Note: This only be called for pending queries because it will erase the LastProcessedFrameNumber value | Perception/AISense_Sight.h |