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