UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
EnvQueryTest_GameplayTags.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
9#include "EnvQueryTest_GameplayTags.generated.h"
10
12
17UCLASS(MinimalAPI, config = Game, defaultconfig)
19{
21
22public:
29 void SetTagQueryToMatch(FGameplayTagQuery& GameplayTagQuery);
30
31protected:
32 virtual void RunTest(FEnvQueryInstance& QueryInstance) const override;
33
34 virtual FText GetDescriptionDetails() const override;
35
36 bool SatisfiesTest(const IGameplayTagAssetInterface* ItemGameplayTagAssetInterface) const;
37
44 virtual void PreSave(FObjectPreSaveContext ObjectSaveContext) override;
45
46 virtual void PostLoad() override;
47
48 UPROPERTY(EditAnywhere, Category=GameplayTagCheck)
49 FGameplayTagQuery TagQueryToMatch;
50
51 // If the actor-item being tested doesn't implement IGameplayTagAssetInterface this flag controls whether the actor's components will be traversed in search of a one implementing IGameplayTagAssetInterface.
52 // Note that only the first found component will be used.
53 UPROPERTY(EditAnywhere, Config, Category=GameplayTagCheck)
54 bool bSearchComponentsForTags = false;
55
56 // This controls how to treat actors that do not implement IGameplayTagAssetInterface.
57 // When set to True, actors that do not implement the interface will be ignored, meaning
58 // they will not be scored and will not be considered when filtering.
59 // When set to False, actors that do not implement the interface will be included in
60 // filter and score operations with a zero score.
61 UPROPERTY(EditAnywhere, Category=GameplayTagCheck)
62 bool bRejectIncompatibleItems;
63
64 // Used to determine whether the file format needs to be updated to move data into TagQueryToMatch or not.
65 UPROPERTY()
66 bool bUpdatedToUseQuery;
67
68 // Deprecated property. Used only to load old data into TagQueryToMatch.
69 UPROPERTY()
71
72 // Deprecated property. Used only to load old data into TagQueryToMatch.
73 UPROPERTY()
75};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EGameplayContainerMatchType
Definition GameplayTagContainer.h:28
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition ObjectSaveContext.h:244
Definition Text.h:385
Definition GameplayTagAssetInterface.h:20
Definition EnvQueryTest_GameplayTags.h:19
Definition EnvQueryTest.h:62
@ false
Definition radaudio_common.h:23
Definition EnvQueryTypes.h:793
Definition GameplayTagContainer.h:251
Definition GameplayTagContainer.h:739