Custom Devices cannot link to a class/struct that links to another Custom Device

Please select what you are reporting on:

Unreal Editor for Fortnite

What Type of Bug are you experiencing?

Devices

Summary

A Custom Device cannot link to a class/struct that links to another Custom Device.

Links to a built-in Fortnite device maintain their links, only custom devices cause the issue

After initial setup, the link to the editable will either clear on building Verse Code, on project close/reopen, or when transitioning to runtime (which results in the leaf custom device having default values, not linked/representing the actual linked instance)

Steps to Reproduce

  1. Create a custom device named leaf_custom_device and add an editable integer with default of 0
  2. Create a custom class (unique, concrete) named custom_class that has an editable of a leaf_custom_device object
  3. Create a custom device name root_custom_device that has an editable of a custom_class object
  4. Drag a root_custom_device and leaf_custom_device device into your scene
  5. Set the leaf_custom_device instance’s integer to a non default value (e.g. 5)
  6. Set the editable link in root_custom_device to the instance of leaf_custom_device in your scene
  7. Add logging print statements to the OnBegin for both custom devices to print out the value of the integer within leaf_custom_class
  8. Save the scene
  9. Close the editor entirely
  10. Reopen the editor and load your project
  11. Observe that the link in root_custom_device to the leaf_custom_device has been cleared
  12. Readd the link and save the project
  13. Start a session and observe the custom logs : root_custom_device prints a value of 0, leaf_custom_device prints a value of 5

Expected Result

All editor-based @editable links maintain their connection on project save/load and when transitioning into runtime

Observed Result

The link to the leaf custom device is lost on project unload/load and also when transitioning into runtime

Platform(s)

PC, UEFN editor

Additional Notes

Happy to provide the sample code or project if it helps.

Reachable in the official discord server: @SayRunOsiris

The status of FORT-736603 incident has been moved from ‘Needs Triage’ to ‘To Do’.

We’re working on this now! Thank you!