๐๏ธ Database & Enum Helpers
Short Description
Small helpers for converting between enum values and their string names; useful for data and config I/O.
Long Description
GorgeousDatabaseHelper exposes template helpers to convert between enum values and string names using Unreal's StaticEnum reflection helpers. These are lightweight utilities used by other runtime helpers when reading or writing textual enum representations.
๐ Features
- Convert enum names to enum values by name.
- Convert enum values to readable string names.
GorgeousStringToEnum<Enumeration>
Converts a string to the requested Enumeration using StaticEnum<Enumeration>()->GetValueByNameString. Use when reading enum names from text-based sources.
| Parameter Name | Type | Description |
|---|---|---|
InValue |
FString |
Enum name string to convert. |
EMyEnum Value = GorgeousStringToEnum<EMyEnum>(TEXT("SomeEnumValue"));
GorgeousEnumToString<Enumeration>
Returns the name string for the supplied enum value using StaticEnum helpers.
| Parameter Name | Type | Description |
|---|---|---|
InValue |
Enumeration |
The enum value to stringify. |
FString Name = GorgeousEnumToString<EMyEnum>(EMyEnum::SomeEnumValue);