Hey, since we can duplicate actors and Verse devices in UEFN and this will lead to two separate instances with the same properties, I wonder if we could have a similar feature in Verse.
Imagine I have this code:
ability_class:=class:
@editable Name: string
ability1_definition:=class<concrete>(ability_class):
Name<override>: string = "1"
@editable SomeField1: int = 0
# ...
ability1000_definition:=class<concrete>(ability_class):
Name<override>: string = "100"
@editable SomeField1000: []creative_device = array{}
@editable Rotation: rotation = rotation{}
So let’s say that I have a “ability_manager_device”, that I use to set the editable fields and want to create copies of all 1000 different ability instances (perhaps each player needs a separate instances of an ability class), then i would need to instantiate 1000 instances and copy every single value over to the new instance, on top of creating a deep copy (since i dont want them to reference the same objects, but separate copies etc).
However UEFN basically does this when duplicating a creative_object in the editor, so it would be nice if we could get some Verse API for that (allowing us to deep copy a concrete class by duplicating all it’s editable fields into the new copy).