UGameplayTagsManager::GetNumberOfTagNodes

Returns the number of parents a particular gameplay tag has.

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

int32 GetNumberOfTagNodes
(
    const FGameplayTag & GameplayTag
) const

Remarks

Returns the number of parents a particular gameplay tag has. Useful as a quick way to determine which tags may be more "specific" than other tags without comparing whether they are in the same hierarchy or anything else. Example: "TagA.SubTagA" has 2 Tag Nodes. "TagA.SubTagA.LeafTagA" has 3 Tag Nodes.