FGameplayTagContainer::AddLeafTag

Adds a tag to the container and removes any direct parents, wont add if child already exists

Choose your operating system:

Windows

macOS

Linux

References

Module

GameplayTags

Header

/Engine/Source/Runtime/GameplayTags/Classes/GameplayTagContainer.h

Include

#include "GameplayTagContainer.h"

Source

/Engine/Source/Runtime/GameplayTags/Private/GameplayTagContainer.cpp

Syntax

bool AddLeafTag
(
    const FGameplayTag & TagToAdd
)

Remarks

Adds a tag to the container and removes any direct parents, wont add if child already exists

Returns

True if tag was added

Parameters

Parameter

Description

Tag

The tag to try and add to this container