Please select what you are reporting on:
Verse
What Type of Bug are you experiencing?
Verse
Summary
When creating a device with an array with content of the array seems to always be whatever was in the array when the device is created. Changing array later has no effect
Steps to Reproduce
Create the following verse device. Notice element count will correctly be logged as 2. If you then comment in the third element and update verse you will notice that the count is still returned as 2. Restarting session or project has no effect. Changing content of array (e.g. foo := 12) is also not reflected after updating.
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
my_element := class():
Foo:int
my_device := class(creative_device):
Elements:my_element = array:
my_element:
Foo := 0
my_element:
Foo := 1
# my_element:
# Foo := 2
OnBegin<override>()<suspends>:void=
Print("my_device: Elements:{Elements.Length}")
for(E : Elements):
Print(" {E.Foo}")
Expected Result
Array should be correctly for each change its content
Observed Result
Seems always on devices always have the value from when device was added to scene (some in scene caching?)
If device is deleted and a new is created the correct updated values will appear
Platform(s)
PC