UGameplayTagsManager::AddNativeGameplayTag

Registers the given name as a gameplay tag, and tracks that it is being directly referenced from code This can only be called during engine initialization, the table needs to be locked down before replication

Choose your operating system:

Windows

macOS

Linux

References

Module

GameplayTags

Header

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

Include

#include "GameplayTagsManager.h"

Source

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

Syntax

FGameplayTag AddNativeGameplayTag
(
    FName TagName,
    const FString & TagDevComment
)

Remarks

Registers the given name as a gameplay tag, and tracks that it is being directly referenced from code This can only be called during engine initialization, the table needs to be locked down before replication

Returns

Will return the corresponding FGameplayTag

Parameters

Parameter

Description

TagName

The Name of the tag to add

TagDevComment

The developer comment clarifying the usage of the tag