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 FEnvQueryResult
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FEnvQueryItem > | Items | ||
| TSubclassOf< UEnvQueryItemType > | ItemType | Type of generated items | |
| int32 | OptionIndex | Index of query option, that generated items | |
| TWeakObjectPtr< UObject > | Owner | Instance owner. | |
| int32 | QueryID | Instance ID | |
| TArray< uint8 > | RawData | Raw data of items |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FEnvQueryResult
(
const EEnvQueryStatus::Type& InStatus |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | GetAllAsActors
(
TArray< AActor* >& OutActors |
Note that this function does not strip out the null-actors to not mess up results of GetItemScore(Index) calls | |
| void | GetAllAsLocations
(
TArray< FVector >& OutLocations |
||
| AActor * | GetItemAsActor
(
int32 Index |
Item accessors for basic types | |
| FVector | GetItemAsLocation
(
int32 Index |
||
| const TItemType::FValueType & | GetItemAsTypeChecked
(
const int32 Index |
||
| const uint8 * | GetItemRawMemory
(
const int32 Index |
||
| float | GetItemScore
(
int32 Index |
||
| EEnvQueryStatus::Type | GetRawStatus () |
||
| bool | IsAborted () |
||
| bool | IsFinished () |
||
| bool | IsSuccessful () |
||
| void | |||
| void | MarkAsFailed () |
||
| void | |||
| void | |||
| void |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | FEnvQueryResult::IsSuccsessful is deprecated. Use FEnvQueryResult::IsSuccessful instead. |