UBlueprintGameplayTagLibrary::MatchesTag

Determine if TagOne matches against TagTwo

Choose your operating system:

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 MatchesTag
(
    FGameplayTag TagOne,
    FGameplayTag TagTwo,
    bool bExactMatch
)

Remarks

Determine if TagOne matches against TagTwo

Returns

True if TagOne matches TagTwo

Parameters

Parameter

Description

TagOne

Tag to check for match

TagTwo

Tag to check match against

bExactMatch

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