UEnvQueryTest_GameplayTags

EnvQueryTest_GameplayTags attempts to cast items to [IGameplayTagAssetInterface](API\Runtime\GameplayTags\IGameplayTagAssetInterface) and test their tags with TagQueryToMatch.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

AIModule

Header

/Engine/Source/Runtime/AIModule/Classes/EnvironmentQuery/Tests/EnvQueryTest_GameplayTags.h

Include

#include "EnvironmentQuery/Tests/EnvQueryTest_GameplayTags.h"

Syntax

class UEnvQueryTest_GameplayTags : public UEnvQueryTest

Remarks

EnvQueryTest_GameplayTags attempts to cast items to IGameplayTagAssetInterface and test their tags with TagQueryToMatch. The behavior of IGameplayTagAssetInterface-less items is configured by bRejectIncompatibleItems.

Variables

Name Description

Protected variable

bool

 

bRejectIncompatibleItems

When set to True, actors that do not implement the interface will be ignored, meaning they will not be scored and will not be considered when filtering.

Protected variable

bool

 

bUpdatedToUseQuery

Used to determine whether the file format needs to be updated to move data into TagQueryToMatch or not.

Protected variable

FGameplayTagCon...

 

GameplayTags

Deprecated property. Used only to load old data into TagQueryToMatch.

Protected variable

FGameplayTagQue...

 

TagQueryToMatch

Protected variable

EGameplayContai...

 

TagsToMatch

Deprecated property. Used only to load old data into TagQueryToMatch.

Constructors

Name Description

Public function

UEnvQueryTest_GameplayTags

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Protected function Const

bool

 

SatisfiesTest

(
    const IGameplayTagAssetInterface&#...
)

Public function

void

 

SetTagQueryToMatch

(
    FGameplayTagQuery& GameplayTagQuer...
)

@note Calling function only makes sense before first run of given query by the EQS manager.

Overridden from UEnvQueryTest

Name Description

Protected function Virtual Const

void

 

RunTest

(
    FEnvQueryInstance& QueryInstance
)

Function that does the actual work

Overridden from UEnvQueryNode

Name Description

Protected function Virtual Const

FText

 

GetDescriptionDetails()

Overridden from UObject

Name Description

Protected function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object.

Protected function Virtual

void

 

PreSave

(
    FObjectPreSaveContext ObjectSaveCon...
)

Presave function.

Deprecated Functions

Name Description

Protected function Virtual

void

 

PreSave

(
    const ITargetPlatform* TargetP...
)

Use version that takes FObjectPreSaveContext instead.