FGameplayTagCountContainer::SetTagCount

Set the specified tag count to a specific value

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

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

Include

#include "GameplayEffectTypes.h"

Syntax

bool SetTagCount
(
    const FGameplayTag & Tag,
    int32 NewCount
)

Remarks

Set the specified tag count to a specific value

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

Count

New count of the tag

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