UBlueprintGameplayTagLibrary::HasTag

Check if the tag container has the specified tag

Windows
MacOS
Linux

References

Module

GameplayTags

Header

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

Include

#include "BlueprintGameplayTagLibrary.h"

Source

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

Syntax

static bool HasTag
(
    const FGameplayTagContainer & TagContainer,
    FGameplayTag Tag,
    bool bExactMatch
)

Remarks

Check if the tag container has the specified tag

Returns

True if the container has the specified tag, false if it does not

Parameters

Parameter

Description

TagContainer

Container to check for the tag

Tag

Tag to check for in the container

bExactMatch

If true, the tag has to be exactly present, if false then TagContainer will include it's parent tags while matching

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