FGameplayTagCountContainer

Struct that tracks the number/count of tag applications within it.

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffectTypes.h

Include

#include "GameplayEffectTypes.h"

Syntax

struct FGameplayTagCountContainer

Remarks

Struct that tracks the number/count of tag applications within it. Explicitly tracks the tags added or removed, while simultaneously tracking the count of parent tags as well. Events/delegates are fired whenever the tag counts of any tag (explicit or parent) are modified.

Constructors

Name Description

Public function

FGameplayTagCountContainer()

Functions

Name Description

Public function

void

 

FillParentTags()

Fills in ParentTags from GameplayTags

Public function Const

const FGamep...

 

GetExplicitGameplayTags()

Simple accessor to the explicit gameplay tag list

Public function Const

int32

 

GetTagCount

(
    const FGameplayTag& Tag
)

Return the count for a specified tag

Public function Const

bool

 

HasAllMatchingGameplayTags

(
    const FGameplayTagContainer& TagCo...
)

Check if the count container has gameplay tags that matches against all of the specified tags (expands to include parents of asset tags)

Public function Const

bool

 

HasAnyMatchingGameplayTags

(
    const FGameplayTagContainer& TagCo...
)

Check if the count container has gameplay tags that matches against any of the specified tags (expands to include parents of asset tags)

Public function Const

bool

 

HasMatchingGameplayTag

(
    FGameplayTag TagToCheck
)

Check if the count container has a gameplay tag that matches against the specified tag (expands to include parents of asset tags)

Public function

void

 

Notify_StackCountChange

(
    const FGameplayTag& Tag
)

Broadcasts the AnyChange event for this tag.

Public function

FOnGameplayE...

 

RegisterGameplayTagEvent

(
    const FGameplayTag& Tag,
    EGameplayTagEventType::Type EventTy...
)

Return delegate that can be bound to for when the specific tag's count changes to or off of zero

Public function

FOnGameplayE...

 

RegisterGenericGameplayEvent()

Return delegate that can be bound to for when the any tag's count changes to or off of zero

Public function

void

 

Reset()

Public function

bool

 

SetTagCount

(
    const FGameplayTag& Tag,
    int32 NewCount
)

Set the specified tag count to a specific value

Public function

void

 

UpdateTagCount

(
    const FGameplayTagContainer& Conta...,
    int32 CountDelta
)

Update the specified container of tags by the specified delta, potentially causing an additional or removal from the explicit tag list

Public function

bool

 

UpdateTagCount

(
    const FGameplayTag& Tag,
    int32 CountDelta
)

Update the specified tag by the specified delta, potentially causing an additional or removal from the explicit tag list

Public function

bool

 

UpdateTagCount_DeferredParentRemoval

(
    const FGameplayTag& Tag,
    int32 CountDelta,
    TArray< FDeferredTagChangeDelegate ...
)

Update the specified tag by the specified delta, potentially causing an additional or removal from the explicit tag list.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss