using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
hello_world_device := class(creative_device):
var MyArray<private>: []int = array{}
OnBegin<override>()<suspends>:void=
AddInt(1)
AddInt(2)
AddInt(i: int): void=
set MyArray += array{i}
Print("My array length is: {MyArray.Length}", ?Duration:=10.0)
It is curious, isn’t it? Is it truly being called 2x? Code snippet doesn’t show how call is being made.
The code above, which follows yours, gives an array length of 2 when called 2x.
I am afraid that I have to report that I did not have the correct device linked in the editor . Wish there was some better way for the code to fail when this happens, instead I went mental for 4 days. Thanks for the help!