UEnum::ParseEnum

Parses the passed in string for a name, then searches for that name in any Enum (in any package)

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

static int64 ParseEnum
(
    const TCHAR *& Str
)

Remarks

Parses the passed in string for a name, then searches for that name in any Enum (in any package)

Returns

index of the value the parsed enum name matches, or INDEX_NONE if no matches

Parameters

Parameter

Description

Str

pointer to string to parse; if we successfully find an enum, this pointer is advanced past the name found