UEnum::GetValueByNameString

Gets enum value by name, returns INDEX_NONE and optionally errors when name is not found.

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

int64 GetValueByNameString
(
    const FString & SearchString,
    EGetByNameFlags Flags
) const

Remarks

Gets enum value by name, returns INDEX_NONE and optionally errors when name is not found. Handles full or short names

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