Navigation
API > API/Runtime > API/Runtime/AIModule > API/Runtime/AIModule/EnvironmentQuery
Inheritance Hierarchy
- FEnvQueryResult
- FEnvQueryInstance
References
Module | AIModule |
Header | /Engine/Source/Runtime/AIModule/Classes/EnvironmentQuery/EnvQueryTypes.h |
Include | #include "EnvironmentQuery/EnvQueryTypes.h" |
Syntax
struct FEnvQueryInstance : public FEnvQueryResult
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
uint8: 1 | bFoundSingleResult | Used to breaking from item iterator loops |
![]() |
uint8: 1 | bHasLoggedTimeLimitWarning | True if this query has logged a warning that it overran the time limit |
![]() |
uint8: 1 | bPassOnSingleResult | Set when testing final condition of an option |
![]() |
uint8: 1 | bStoreDebugInfo | Set to true to store additional debug info |
![]() |
TMap< UClass *, FEnvQueryContextData > | ContextCache | Contexts in use |
![]() |
double | CurrentStepTimeLimit | If > 0 then it's how much time query has for performing current step |
![]() |
int32 | CurrentTest | Currently processed test (-1 = generator) |
![]() |
int32 | CurrentTestStartingItem | Non-zero if test run last step has been stopped mid-process. |
![]() |
FEnvQueryDebugData | DebugData | |
![]() |
FQueryFinishedSignature | FinishDelegate | Observer's delegate |
![]() |
double | GenerationTimeWarningSeconds | Maximum EQS Generator duration (in seconds) before a warning is reported in non-shipping build. |
![]() |
TArray< FEnvQueryItemDetails > | ItemDetails | List of item details |
![]() |
UEnvQueryItemType_ActorBase * | ItemTypeActorCDO | Item type's CDO for actor tests |
![]() |
UEnvQueryItemType_VectorBase * | ItemTypeVectorCDO | Item type's CDO for location tests |
![]() |
EEnvQueryRunMode::Type | Mode | Run mode |
![]() |
TMap< FName, FNamedParamValueType > | NamedParams | Execution params |
![]() |
int32 | NumProcessedItems | Number of items processed in current step |
![]() |
int32 | NumValidItems | Number of valid items on list |
![]() |
TArray< FEnvQueryOptionInstance > | Options | List of options |
![]() |
FString | QueryName | Short name of query template - friendly name for debugging |
![]() |
double | StartTime | Timestamp of creating query instance |
![]() |
double | TotalExecutionTime | Time spent executing this query |
![]() |
FName | UniqueName | Unique name of query template - object name |
![]() |
uint16 | ValueSize | Size of current value |
![]() |
UWorld * | World | World owning this query instance |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
|||
![]() |
FEnvQueryInstance
(
const FEnvQueryInstance& Other |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddItemData
(
TArray< typename TypeItem::FValueType >& ItemCollection |
AddItemData specialization for arrays if values |
![]() |
void | AddItemData
(
typename TypeItem::FValueType ItemValue |
|
![]() |
void | AddItemData
(
FVector ItemValue |
A specialization to support saving locations with navigation data already gathered |
![]() |
void | AddItemData
(
FVector ItemValue |
|
![]() |
void | AddItemData
(
TypeValue ItemValue |
|
![]() |
void | AddItemData
(
TArray< TypeValue >& ItemCollection |
|
![]() ![]() |
bool | CanBatchTest () |
Check if current test can batch its calculations |
![]() |
void | DecStats () |
|
![]() |
void | ExecuteOneStep
(
double TimeLimit |
Execute single step of query |
![]() |
void | Prepare item data after generator has finished | |
![]() |
void | Final pass on items of finished query | |
![]() |
void | FinalizeTest () |
Update costs and flags after test has finished |
![]() ![]() |
uint32 | ||
![]() ![]() |
FBox | ||
![]() ![]() |
uint32 | ||
![]() ![]() |
FString | Describe for logging purposes what the query spent time on | |
![]() |
void | IncStats () |
|
![]() ![]() |
bool | ||
![]() ![]() |
void | ||
![]() |
void | Normalize total score in range 0..1 | |
![]() |
void | PickRandomItemOfScoreAtLeast
(
float MinScore |
Pick one of items with score equal or higher than specified |
![]() |
void | PickSingleItem
(
int32 ItemIndex |
Discard all items but one |
![]() |
bool | PrepareContext
(
UClass* Context, |
Update context cache |
![]() |
bool | PrepareContext
(
UClass* Context, |
Update context cache |
![]() |
bool | PrepareContext
(
UClass* Context, |
Helpers for reading spatial data from context |
![]() |
bool | PrepareContext
(
UClass* Context, |
Update context cache |
![]() |
bool | PrepareContext
(
UClass* Context, |
Helpers for reading actor data from context |
![]() |
void | ReserveItemData
(
int32 NumAdditionalItems |
Raw data operations |
![]() |
void | SortScores () |
Sort all scores, from highest to lowest |
![]() |
void | Removes all runtime data that can be used for debugging (not a part of actual query result) |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FConstItemIterator | Note that this iterator is for read-only purposes. | |
![]() |
FItemIterator |
Typedefs
Name | Description |
---|---|
FNamedParamValueType | |
ItemIterator |
Constants
Name | Description |
---|---|
bDebuggingInfoEnabled |