Summary
This is a bug, in my opinion. If an optional concrete class editable is copied from once device to another, settings within the class changed in one device change in both.
Please select what you are reporting on:
Unreal Editor for Fortnite
What Type of Bug are you experiencing?
Verse
Steps to Reproduce
Here is an example Verse device.
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
optional_int:=class:
@editable IntValue:int=0
hello_world_device := class(creative_device):
@editable OptionalInt:?optional_int=false
- Place two copies of this device into the world.
- Set the optional value on both devices.
- Copy the optional class from one device to another.
- Change the int value, the value will update on both devices.
Expected Result
Since there is no indication that these devices are linked in this way, nor that this is the expected behavior, I would expect the copy to be made by value and not by reference, and that a new instance of the concrete class is created once pasted.
Observed Result
The value will update on both devices, effectively linking them.
Platform(s)
UEFN