rdeioris / LuaMachine

Unreal Engine Plugin for Lua APIs implementation
MIT License
581 stars 120 forks source link

Struct Enums convert to/from DisplayName strings #56

Open Olathuss opened 1 year ago

Olathuss commented 1 year ago

UENUMs set in Structs will use the DisplayName string value in LUA during conversion. They will also properly convert to the right ENUM value from LuaValue strings.

Olathuss commented 1 year ago

It should be noted this could break current projects depending on the integer conversion. But I added this in my current project and wanted to share.

If modifications would be preferred before using, such as adding a bool to the conversion to allow integer or string, feel free to reject and modify as needed; if it's wanted at all. Or if you'd like me to add changes, let me know. Thanks!