FGameplayTagContainer::HasTag

Determine if the container has the specified tag

Windows
MacOS
Linux

Deprecated

  • Deprecated in favor of HasTag with no parameters

References

Module

GameplayTags

Header

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

Include

#include "GameplayTagContainer.h"

Syntax

bool HasTag
(
    FGameplayTag const & TagToCheck,
    TEnumAsByte< EGameplayTagMatchType::Type > TagMatchType,
    TEnumAsByte< EGameplayTagMatchType::Type > TagToCheckMatchType
) const

Remarks

Determine if the container has the specified tag

Returns

True if the tag is in the container, false if it is not

Parameters

Parameter

Description

TagToCheck

Tag to check if it is present in the container

TagMatchType

Type of match to use for the tags in this container

TagToCheckMatchType

Type of match to use for the TagToCheck Param

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