UEnum::HasMetaData

Wrapper method for easily determining whether this enum has metadata associated with it.

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/Class.h

Include

#include "UObject/Class.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/Enum.cpp

Syntax

bool HasMetaData
(
    const TCHAR * Key,
    int32 NameIndex
) const

Remarks

Wrapper method for easily determining whether this enum has metadata associated with it.

Returns

true if the specified key exists in the list of metadata for this enum, even if the value of that key is empty

Parameters

Parameter

Description

Key

the metadata tag to check for

NameIndex

if specified, will search for metadata linked to a specified value in this enum; otherwise, searches for metadata for the enum itself