Navigation
Unreal Engine C++ API Reference > Runtime > GameplayTags
Inheritance Hierarchy
- FGameplayTag
- FUITag
- FUIActionTag
References
Module | GameplayTags |
Header | /Engine/Source/Runtime/GameplayTags/Classes/GameplayTagContainer.h |
Include | #include "GameplayTagContainer.h" |
Syntax
USTRUCT (BlueprintType ,
Meta=(HasNativeMake="/Script/GameplayTags.BlueprintGameplayTagLibrary.MakeLiteralGameplayTag", HasNativeBreak="/Script/GameplayTags.BlueprintGameplayTagLibrary.GetTagName", DisableSplitPin))
struct FGameplayTag
Remarks
A single gameplay tag, which represents a hierarchical name of the form x.y that is registered in the GameplayTagsManager You can filter the gameplay tags displayed in the editor using, meta = (Categories = "Tag1.Tag2.Tag3"))
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() ![]() ![]() |
FName | TagName | This Tags Name |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FGameplayTag () |
Constructors | |
![]() |
FGameplayTag
(
const FName& InTagName |
Intentionally private so only the tag manager can use |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | FromExportString
(
const FString& ExportString, |
Sets from a ImportText string, used in asset registry |
![]() ![]() |
FGameplayTagContainer | Returns a new tag container that includes this tag and all parent tags as explicitly added tags. | |
![]() ![]() |
FGameplayTagContainer | Returns a GameplayTagContainer containing only this tag | |
![]() ![]() |
FName | GetTagName () |
Get the tag represented as a name |
![]() |
bool | ImportTextItem
(
const TCHAR*& Buffer, |
Handles importing tag strings without (TagName=) in it |
![]() ![]() |
bool | IsValid () |
Returns whether the tag is valid or not; Invalid tags are set to NAME_None and do not exist in the game-specific global dictionary |
![]() ![]() |
bool | IsValidGameplayTagString
(
const FString& TagString, |
Returns true if this is a valid gameplay tag string (foo.bar.baz). If false, it will fill |
![]() ![]() |
bool | MatchesAny
(
const FGameplayTagContainer& ContainerToCheck |
Checks if this tag matches ANY of the tags in the specified container, also checks against our parent tags "A.1".MatchesAny({"A","B"}) will return True, "A".MatchesAny({"A.1","B"}) will return False If ContainerToCheck is empty/invalid it will always return False |
![]() ![]() |
bool | MatchesAnyExact
(
const FGameplayTagContainer& ContainerToCheck |
Checks if this tag matches ANY of the tags in the specified container, only allowing exact matches "A.1".MatchesAny({"A","B"}) will return False If ContainerToCheck is empty/invalid it will always return False |
![]() ![]() |
bool | MatchesTag
(
const FGameplayTag& TagToCheck |
Determine if this tag matches TagToCheck, expanding our parent tags "A.1".MatchesTag("A") will return True, "A".MatchesTag("A.1") will return False If TagToCheck is not Valid it will always return False |
![]() ![]() |
int32 | MatchesTagDepth
(
const FGameplayTag& TagToCheck |
Check to see how closely two FGameplayTags match. |
![]() ![]() |
bool | MatchesTagExact
(
const FGameplayTag& TagToCheck |
Determine if TagToCheck is valid and exactly matches this tag "A.1".MatchesTagExact("A") will return False If TagToCheck is not Valid it will always return False |
![]() |
bool | NetSerialize
(
FArchive& Ar, |
Overridden for fast serialize |
![]() |
bool | NetSerialize_Packed
(
FArchive& Ar, |
|
![]() ![]() |
void | ParseParentTags
(
TArray< FGameplayTag >& UniqueParentTags |
Parses the tag name and fills in UniqueParentTags with raw parent tags, without validating with the tag manager. |
![]() |
void | PostSerialize
(
const FArchive& Ar |
Handles fixup and errors. |
![]() ![]() |
FGameplayTag | Returns direct parent GameplayTag of this GameplayTag, calling on x.y will return x | |
![]() ![]() |
FGameplayTag | RequestGameplayTag
(
const FName& TagName, |
Gets the FGameplayTag that corresponds to the TagName |
![]() |
bool | SerializeFromMismatchedTag
(
const FPropertyTag& Tag, |
Used to upgrade a Name property to a GameplayTag struct property |
![]() ![]() |
FString | ToString () |
Displays gameplay tag as a string for blueprint graph usage |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | operator!=
(
FGameplayTag const& Other |
|
![]() ![]() |
bool | operator<
(
FGameplayTag const& Other |
|
![]() ![]() |
bool | operator==
(
FGameplayTag const& Other |
Operators |
Constants
Name | Description |
---|---|
EmptyTag | An empty Gameplay Tag |