@editable fields do not retain <open> enum value when inserting/reordering new values

Summary

The documentation explicitly states that an enum with the <open> specifier can be reordered.

However, enum fields exposed with @edtiable do not retain the correct value when reordering the entries in the enum.

Inserting a new entry into an enum causes all subsequent values stored in @edtiable fields to reference the wrong enum value.

Please select what you are reporting on:

Unreal Editor for Fortnite

What Type of Bug are you experiencing?

UI/Tools

Steps to Reproduce

  • Create a simple enum list and add the <open> specifier.
my_enum := enum<open><persistable>:
    One
    Two
    Four
    Five
    Three

my_device := class(creative_device):
    @editable
    MyEnum:my_enum = my_enum.One
  • Add the device to a scene and change MyEnum’s value to ‘Five’.

  • Save the scene.

  • Observe that the value is indeed saved as ‘Five’

  • Reorder the enum so that ‘Three’ is between ‘Two’ and ‘Four’

  • Compile Verse and Observe that the value that was set to ‘Five’ is now presented as ‘Four’ in the editable field.

Expected Result

The saved value should be ‘Five’ as originally set

Observed Result

The saved value is ‘Four’

Platform(s)

Windows

Additional Notes

If this is intended behavior then the documentation should be updated to explain what ‘Can add and reorder enum values.’ actually means.