FGameplayTagCountContainer::UpdateTagCount

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

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

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

Include

#include "GameplayEffectTypes.h"

Syntax

bool UpdateTagCount
(
    const FGameplayTag & Tag,
    int32 CountDelta
)

Remarks

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

Returns

True if tag was either added or removed. (E.g., we had the tag and now dont. or didnt have the tag and now we do. We didn't just change the count (1 count -> 2 count would return false).

Parameters

Parameter

Description

Tag

Tag to update

CountDelta

Delta of the tag count to apply

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