UBlueprintGameplayTagLibrary::HasAnyTags

Check if the specified tag container has ANY of the tags in the other container

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 HasAnyTags
(
    const FGameplayTagContainer & TagContainer,
    const FGameplayTagContainer & OtherContainer,
    bool bExactMatch
)

Remarks

Check if the specified tag container has ANY of the tags in the other container

Returns

True if the container has ANY of the tags in the other container

Parameters

Parameter

Description

TagContainer

Container to check if it matches any of the tags in the other container

OtherContainer

Container to check against.

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