Navigation
API > API/Plugins > API/Plugins/GameplayAbilities
References
| Module | GameplayAbilities |
| Header | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffect.h |
| Include | #include "GameplayEffect.h" |
Syntax
USTRUCT (BlueprintType )
struct FGameplayEffectQuery
Remarks
Every set condition within this query must match in order for the query to match. i.e. individual query elements are ANDed together.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FActiveGameplayEffectQueryCustomMatch | CustomMatchDelegate | Native delegate for providing custom matching conditions. | |
| FActiveGameplayEffectQueryCustomMatch_Dynamic | CustomMatchDelegate_BP | BP-exposed delegate for providing custom matching conditions. | |
| TSubclassOf< UGameplayEffect > | EffectDefinition | Matches on GameplayEffects with this definition | |
| TObjectPtr< const UObject > | EffectSource | Matches on GameplayEffects which come from this source | |
| FGameplayTagQuery | EffectTagQuery | Query that is matched against tags this GE has | |
| TArray< FActiveGameplayEffectHandle > | IgnoreHandles | Handles to ignore as matches, even if other criteria is met | |
| FGameplayAttribute | ModifyingAttribute | Matches on GameplayEffects which modify given attribute. | |
| FGameplayTagQuery | OwningTagQuery | Query that is matched against tags this GE gives | |
| FGameplayTagQuery | SourceAggregateTagQuery | Query that is matched against all tags the source of this GE has | |
| FGameplayTagQuery | SourceTagQuery | Query that is matched against spec tags the source of this GE has |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Ctors and operators | |||
FGameplayEffectQuery
(
const FGameplayEffectQuery& Other |
|||
FGameplayEffectQuery
(
FActiveGameplayEffectQueryCustomMatch InCustomMatchDelegate |
|||
FGameplayEffectQuery
(
FGameplayEffectQuery&& Other |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | IsEmpty () |
Returns true if the query is empty/default. E.g., it has no data set. | |
| FGameplayEffectQuery | MakeQuery_MatchAllEffectTags
(
const FGameplayTagContainer& InTags |
Creates an effect query that will match if all of the given tags are in the ActiveGameplayEffect's tags | |
| FGameplayEffectQuery | MakeQuery_MatchAllOwningTags
(
const FGameplayTagContainer& InTags |
Creates an effect query that will match if all of the given tags are in the ActiveGameplayEffect's owning tags | |
| FGameplayEffectQuery | MakeQuery_MatchAllSourceSpecTags
(
const FGameplayTagContainer& InTags |
Creates an effect query that will match if all of the given tags are in the ActiveGameplayEffect's source spec tags | |
| FGameplayEffectQuery | MakeQuery_MatchAnyEffectTags
(
const FGameplayTagContainer& InTags |
Creates an effect query that will match if there are any common tags between the given tags and an ActiveGameplayEffect's tags | |
| FGameplayEffectQuery | MakeQuery_MatchAnyOwningTags
(
const FGameplayTagContainer& InTags |
Creates an effect query that will match if there are any common tags between the given tags and an ActiveGameplayEffect's owning tags | |
| FGameplayEffectQuery | MakeQuery_MatchAnySourceSpecTags
(
const FGameplayTagContainer& InTags |
Creates an effect query that will match if there are any common tags between the given tags and an ActiveGameplayEffect's source spec tags | |
| FGameplayEffectQuery | MakeQuery_MatchNoEffectTags
(
const FGameplayTagContainer& InTags |
Creates an effect query that will match if there are no common tags between the given tags and an ActiveGameplayEffect's tags | |
| FGameplayEffectQuery | MakeQuery_MatchNoOwningTags
(
const FGameplayTagContainer& InTags |
Creates an effect query that will match if there are no common tags between the given tags and an ActiveGameplayEffect's owning tags | |
| FGameplayEffectQuery | MakeQuery_MatchNoSourceSpecTags
(
const FGameplayTagContainer& InTags |
Creates an effect query that will match if there are no common tags between the given tags and an ActiveGameplayEffect's source spec tags | |
| bool | Matches
(
const FActiveGameplayEffect& Effect |
Returns true if Effect matches all specified criteria of this query, including CustomMatch delegates if bound. | |
| bool | Matches
(
const FGameplayEffectSpec& Effect |
Returns true if Effect matches all specified criteria of this query. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FGameplayEffectQuery& Other |
||
| FGameplayEffectQuery & | operator=
(
FGameplayEffectQuery&& Other |
||
| FGameplayEffectQuery & | operator=
(
const FGameplayEffectQuery& Other |
||
| bool | operator==
(
const FGameplayEffectQuery& Other |