Instantiating a struct in Verse

Is it possible to get this to work with a device as one of the editable props? Like so:

capture_item_spawner := struct<concrete> {
    @editable
    Device: capture_item_spawner_device = capture_item_spawner_device {}

    @editable
    Level: int = 0
}

my_game_device := class (creative_device) {
    @editable
    CaptureItemSpawners: []capture_item_spawner = array {}
}

Cause right now I can’t seem to get this working, it shows that there are 2 members to each editable item in the array but it’s only showing Level:

editable

I wasn’t sure if its not possible yet, or if it should be and it’s broken or I’ve just set it up wrong.

1 Like