Optional Class Instances Shared Between Verse Devices

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

  1. Place two copies of this device into the world.
  2. Set the optional value on both devices.
  3. Copy the optional class from one device to another.
  4. 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

Upload an image




FORT-951899 has been created and its status is ‘Unconfirmed’. This is now in a queue to be reproduced and confirmed.

1 Like

FORT-951900 has been created and its status is ‘Unconfirmed’. This is now in a queue to be reproduced and confirmed.

1 Like