Array containing multiple values?

Hello,

I am working on a project that uses height values quite a bit. I am currently storing height the values for a grid in multiple arrays. (One array is for level one and contains integers which are the numbers of the cubes in the grid that are level 1, one is for level 2, etc.)

I was wondering if there were a better way to do this, as I currently have to have a different array for every single level, and if there are a lot it will be quite difficult to manage.

One idea I had was to use an array with multiple values. (eg. cube 1, level 1. cube 2, level 2, etc.) Is it possible in UE4?

Thanks in advance!

if the value is the same for each level, you can use persistent object and pass them between levels.
if it is not the same. create a struct with variable names after each level that hold the height value for that level and make an array from it and still use it in your persistent object to pass it between levels

Thanks a bunch!