Navigation
API > API/Runtime > API/Runtime/AIModule
| Name | UEnvQueryTest |
| Type | class |
| Header File | /Engine/Source/Runtime/AIModule/Classes/EnvironmentQuery/EnvQueryTest.h |
| Include Path | #include "EnvironmentQuery/EnvQueryTest.h" |
Syntax
UCLASS (Abstract, MinimalAPI)
class UEnvQueryTest : public UEnvQueryNode
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UEnvQueryNode → UEnvQueryTest
Derived Classes
UEnvQueryTest derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UEnvQueryTest
(
const FObjectInitializer& ObjectInitializer |
EnvironmentQuery/EnvQueryTest.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bDefineReferenceValue | bool | When set to true enables usage of ReferenceValue. It's false by default | EnvironmentQuery/EnvQueryTest.h |
|
| BoolValue | FAIDataProviderBoolValue | Desired boolean value of the test for scoring to occur or filtering test to pass. | EnvironmentQuery/EnvQueryTest.h |
|
| ClampMaxType | TEnumAsByte< EEnvQueryTestClamping::Type > | How should the upper bound for normalization of the raw test value before applying the scoring formula be determined? Should it use the highest value found (tested), the upper threshold for filtering, or a separate specified normalization maximum? | EnvironmentQuery/EnvQueryTest.h |
|
| ClampMinType | TEnumAsByte< EEnvQueryTestClamping::Type > | How should the lower bound for normalization of the raw test value before applying the scoring formula be determined? Should it use the lowest value found (tested), the lower threshold for filtering, or a separate specified normalization minimum? | EnvironmentQuery/EnvQueryTest.h |
|
| Cost | TEnumAsByte< EEnvTestCost::Type > | Cost of test | EnvironmentQuery/EnvQueryTest.h | |
| FilterType | TEnumAsByte< EEnvTestFilterType::Type > | Does this test filter out results that are below a lower limit, above an upper limit, or both? Or does it just look for a matching value? | EnvironmentQuery/EnvQueryTest.h |
|
| FloatValueMax | FAIDataProviderFloatValue | Maximum limit (inclusive) of valid values for the raw test value. | EnvironmentQuery/EnvQueryTest.h |
|
| FloatValueMin | FAIDataProviderFloatValue | Minimum limit (inclusive) of valid values for the raw test value. | EnvironmentQuery/EnvQueryTest.h |
|
| MultipleContextFilterOp | TEnumAsByte< EEnvTestFilterOperator::Type > | Determines filtering operator when context returns multiple items | EnvironmentQuery/EnvQueryTest.h |
|
| MultipleContextScoreOp | TEnumAsByte< EEnvTestScoreOperator::Type > | Determines scoring operator when context returns multiple items | EnvironmentQuery/EnvQueryTest.h |
|
| NormalizationType | EEQSNormalizationType | Specifies how to determine value span used to normalize scores | EnvironmentQuery/EnvQueryTest.h |
|
| PreviewData | FEnvQueryTestScoringPreview | Samples of scoring function to show on graph in editor | EnvironmentQuery/EnvQueryTest.h | |
| ReferenceValue | FAIDataProviderFloatValue | When specified gets used to normalize test's results in such a way that the closer a value is to ReferenceValue the higher normalized result it will produce. | EnvironmentQuery/EnvQueryTest.h |
|
| ScoreClampMax | FAIDataProviderFloatValue | Maximum value to use to normalize the raw test value before applying scoring formula. | EnvironmentQuery/EnvQueryTest.h |
|
| ScoreClampMin | FAIDataProviderFloatValue | Minimum value to use to normalize the raw test value before applying scoring formula. | EnvironmentQuery/EnvQueryTest.h |
|
| ScoringEquation | TEnumAsByte< EEnvTestScoreEquation::Type > | The shape of the curve equation to apply to the normalized score before multiplying by factor. | EnvironmentQuery/EnvQueryTest.h |
|
| ScoringFactor | FAIDataProviderFloatValue | The weight (factor) by which to multiply the normalized score after the scoring equation is applied. | EnvironmentQuery/EnvQueryTest.h |
|
| TestComment | FString | Optional comment or explanation about what this test is for. | EnvironmentQuery/EnvQueryTest.h |
|
| TestOrder | int32 | Number of test as defined in data asset | EnvironmentQuery/EnvQueryTest.h | |
| TestPurpose | TEnumAsByte< EEnvTestPurpose::Type > | The purpose of this test. Should it be used for filtering possible results, scoring them, or both? | EnvironmentQuery/EnvQueryTest.h |
|
| ValidItemType | TSubclassOf< UEnvQueryItemType > | Validation: item type that can be used with this test | EnvironmentQuery/EnvQueryTest.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bWorkOnFloatValues | uint32 | When set, test operates on float values (e.g. distance, with AtLeast, UpTo conditions), otherwise it will accept bool values (e.g. visibility, with Equals condition) | EnvironmentQuery/EnvQueryTest.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool CanRunAsFinalCondition() |
EnvironmentQuery/EnvQueryTest.h | ||
| EnvironmentQuery/EnvQueryTest.h | |||
FText DescribeFloatTestParams() |
EnvironmentQuery/EnvQueryTest.h | ||
AActor * GetItemActor
(
FEnvQueryInstance& QueryInstance, |
Helper: get actor from item | EnvironmentQuery/EnvQueryTest.h | |
AActor * GetItemActor
(
FEnvQueryInstance& QueryInstance, |
Helper: get actor from item | EnvironmentQuery/EnvQueryTest.h | |
FVector GetItemLocation
(
FEnvQueryInstance& QueryInstance, |
Helper: get location of item | EnvironmentQuery/EnvQueryTest.h | |
FVector GetItemLocation
(
FEnvQueryInstance& QueryInstance, |
Helper: get location of item | EnvironmentQuery/EnvQueryTest.h | |
FRotator GetItemRotation
(
FEnvQueryInstance& QueryInstance, |
Helper: get location of item | EnvironmentQuery/EnvQueryTest.h | |
FRotator GetItemRotation
(
FEnvQueryInstance& QueryInstance, |
Helper: get location of item | EnvironmentQuery/EnvQueryTest.h | |
bool GetWorkOnFloatValues() |
EnvironmentQuery/EnvQueryTest.h | ||
bool IsContextPerItem
(
TSubclassOf< UEnvQueryContext > CheckContext |
Check if context needs to be updated for every item | EnvironmentQuery/EnvQueryTest.h | |
bool IsFiltering() |
EnvironmentQuery/EnvQueryTest.h | ||
bool IsScoring() |
EnvironmentQuery/EnvQueryTest.h | ||
bool IsSupportedItem
(
TSubclassOf< UEnvQueryItemType > ItemType |
Check if test supports item type | EnvironmentQuery/EnvQueryTest.h | |
void NormalizeItemScores
(
FEnvQueryInstance& QueryInstance |
Normalize scores in range | EnvironmentQuery/EnvQueryTest.h | |
virtual void RunTest
(
FEnvQueryInstance& QueryInstance |
Function that does the actual work | EnvironmentQuery/EnvQueryTest.h | |
void SetWorkOnFloatValues
(
bool bWorkOnFloats |
EnvironmentQuery/EnvQueryTest.h | ||
void UpdatePreviewData() |
Update preview list | EnvironmentQuery/EnvQueryTest.h |
Overridden from UEnvQueryNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void UpdateNodeVersion() |
Update to latest version after spawning | EnvironmentQuery/EnvQueryTest.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
EnvironmentQuery/EnvQueryTest.h | ||
virtual void PostLoad() |
EnvironmentQuery/EnvQueryTest.h |