FGameplayTag::IsValidGameplayTagString

Returns true if this is a valid gameplay tag string (foo.bar.baz). If false, it will fill

Choose your operating system:

Windows

macOS

Linux

References

Module

GameplayTags

Header

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

Include

#include "GameplayTagContainer.h"

Source

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

Syntax

static bool IsValidGameplayTagString
(
    const FString & TagString,
    FText * OutError,
    FString * OutFixedString
)

Remarks

Returns true if this is a valid gameplay tag string (foo.bar.baz). If false, it will fill

Returns

True if this can be added to the tag dictionary, false if there's a syntax error

Parameters

Parameter

Description

TagString

String to check for validity

OutError

If non-null and string invalid, will fill in with an error message

OutFixedString

If non-null and string invalid, will attempt to fix. Will be empty if no fix is possible