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

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

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