Hi.
You didn’t tell what’s wrong with this code, but I suppose if didn’t compile. I think you should add a default constructor to your structure. If you don’t want a constructor, you may use TArray::AddUninitialized or TArray::AddZeroed to add specified number of items, then initialize them explicitly by iterating over array items.