How to set a 2d array of structs

I have created a getter function that gets the element.

But it won’t set it or resize it.

This sort of works
https://forums.unrealengine.com/showthread.php?65632-How-to-make-2d-array

I can manually add or create the array from a make array node. But that doesn’t help.

you need to store the inner array into a separate temporary array, then you can change its elements, then you need to set the outer array element to the temp array.

Thanks a lot!

http://i.imgur.com/9CAq2u3.png

The best way in my opinion is to use a single one-dimensional array to store data and use a simple formula to access that data. Assuming that row is X and column is Y than the formula is Y * SizeX + X and you also have to specify the width of your 2D array (SizeX). Since the input array is wildcard it accepts any type of array, including array of structs. You can make two macros - Get2DArrayElement and Set2DArrayElement as in these pictures:

Array input in macro Set2DArrayElement should be passed by reference.

78104-inputs.jpg