Navigation
API > API/Runtime > API/Runtime/AIModule > API/Runtime/AIModule/EnvironmentQuery
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UAISubsystem
- UEnvQueryManager
References
| Module | AIModule |
| Header | /Engine/Source/Runtime/AIModule/Classes/EnvironmentQuery/EnvQueryManager.h |
| Include | #include "EnvironmentQuery/EnvQueryManager.h" |
Syntax
class UEnvQueryManager :
public UAISubsystem,
public FSelfRegisteringExec
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bTestQueriesUsingBreadth | Whether we update EQS queries based on: running a test on one query and move to the next (breadth) - default behavior, or test an entire query before moving to the next one (depth). | |
| FEQSDebugger | EQSDebugger | ||
| double | ExecutionTimeWarningSeconds | Maximum EQS execution duration (in seconds) before a warning is reported. | |
| TMap< int32, TWeakPtr< FEnvQueryInstance > > | ExternalQueries | Queries run independently from manager, mapped here for data providers | |
| TArray< TObjectPtr< UEnvQueryInstanceBlueprintWrapper > > | GCShieldedWrappers | ||
| double | GenerationTimeWarningSeconds | Maximum EQS Generator duration (in seconds) before a warning is reported. | |
| double | HandlingResultTimeWarningSeconds | Maximum EQS Query FinishDelegate duration (in seconds) before a warning is reported. | |
| TArray< FEnvQueryInstanceCache > | InstanceCache | Cache of instances | |
| TMap< FName, UEnvQueryContext * > | LocalContextMap | Local contexts mapped by class names | |
| TArray< TObjectPtr< UEnvQueryContext > > | LocalContexts | Local cache of context objects for managing BP based objects | |
| float | MaxAllowedTestingTime | How long are we allowed to test per update, in seconds. | |
| int32 | NextQueryID | Next ID for running query | |
| int32 | NumRunningQueriesAbortedSinceLastUpdate | Count of queries aborted since last update, to be removed. | |
| double | QueryCountWarningInterval | How often (in seconds) we will warn about the number of queries (allows us to catch multiple occurrences in a session) | |
| int32 | QueryCountWarningThreshold | If greater than zero, we will warn once when the number of queries is greater than or equal to this number, and log the queries out | |
| TArray< TSharedPtr< FEnvQueryInstance > > | RunningQueries | Currently running queries | |
| friend | UEnvQueryInstanceBlueprintWrapper |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UEnvQueryManager
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AbortQuery
(
int32 RequestID |
Aborts specific query | |
| void | Configure
(
const FEnvQueryManagerConfig& NewConfig |
Configure config variables during runtime | |
| TSharedPtr< FEnvQueryInstance > | CreateQueryInstance
(
const UEnvQuery* Template, |
Create new instance, using cached data is possible | |
| float | FindNamedParam
(
int32 QueryId, |
Find value of named param stored with active query | |
| TSharedPtr< FEnvQueryInstance > | FindQueryInstance
(
const int32 QueryID |
||
| UEnvQuery * | FindQueryTemplate
(
const FString& QueryName |
Finds UEnvQuery matching QueryName by first looking at instantiated queries (from InstanceCache) falling back to looking up all UEnvQuery and testing their name | |
| UEnvQueryManager * | GetCurrent
(
UWorld* World |
||
| UEnvQueryManager * | GetCurrent
(
const UObject* WorldContextObject |
||
| FEQSDebugger & | GetDebugger () |
||
| void | NotifyAssetUpdate
(
UEnvQuery* Query |
||
| void | Fail all running queries on cleaning the world | ||
| UEnvQueryContext * | PrepareLocalContext
(
TSubclassOf< UEnvQueryContext > ContextClass |
Creates local context object | |
| TSharedPtr< FEnvQueryInstance > | PrepareQueryInstance
(
const FEnvQueryRequest& Request, |
Creates a query instance configured for execution | |
| void | Outputs active queries to log | ||
| void | RegisterActiveWrapper
(
UEnvQueryInstanceBlueprintWrapper& Wrapper |
||
| void | RegisterExternalQuery
(
const TSharedPtr< FEnvQueryInstance >& QueryInstance |
Add information for data providers about query instance run independently | |
| void | RemoveAllQueriesByQuerier
(
const UObject& Querier, |
||
| UEnvQueryInstanceBlueprintWrapper * | RunEQSQuery
(
UObject* WorldContextObject, |
||
| void | RunInstantQuery
(
const TSharedPtr< FEnvQueryInstance >& QueryInstance |
Alternative way to run queries. | |
| TSharedPtr< FEnvQueryResult > | RunInstantQuery
(
const FEnvQueryRequest& Request, |
Alternative way to run queries. | |
| int32 | RunQuery
(
const TSharedPtr< FEnvQueryInstance >& QueryInstance, |
Execute query | |
| int32 | RunQuery
(
const FEnvQueryRequest& Request, |
Execute query | |
| void | SetAllowTimeSlicing
(
bool bAllowTimeSlicing |
||
| void | SilentlyRemoveAllQueriesByQuerier
(
const UObject& Querier |
Removed all active queries asked by Querier. | |
| void | UnregisterActiveWrapper
(
UEnvQueryInstanceBlueprintWrapper& Wrapper |
||
| void | UnregisterExternalQuery
(
const TSharedPtr< FEnvQueryInstance >& QueryInstance |
Clear information about query instance run independently |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | Cleanup hooks for map loading | ||
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. | ||
| void | PostLoad () |
Makes sure we don't have any UEnvQueryManager instances serialized in. |
Overridden from FTickableGameObject
| Type | Name | Description | |
|---|---|---|---|
| bool | Used to determine whether the object should be ticked in the editor. |
Overridden from FTickableObjectBase
| Type | Name | Description | |
|---|---|---|---|
| TStatId | GetStatId () |
Return the stat id to use for this tickable | |
| void | Tick
(
float DeltaTime |
FTickableGameObject begin. |
Overridden from FExec
| Type | Name | Description | |
|---|---|---|---|
| bool | Exec_Dev
(
UWorld* InWorld, |
Implementation of Exec that is only called in non-shipping targets |
Constants
| Name | Description |
|---|---|
| bAllowEQSTimeSlicing | |
| DebuggerStats | |
| RegisteredItemTypes | List of all known item types |