Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/GameplayTags/Classes/GameplayTagContainer.h |
Include |
#include "GameplayTagContainer.h" |
bool HasTag
(
const FGameplayTag & TagToCheck
) const
Determine if TagToCheck is present in this container, also checking against parent tags {"A.1"}.HasTag("A") will return True, {"A"}.HasTag("A.1") will return False If TagToCheck is not Valid it will always return False
True if TagToCheck is in this container, false if it is not