I have created an empty class using the wizard, and have played around with trying to create this myself.
I have scrolled up and down the TArray Guide and the Structs guide, on wiki, on unreal forums, and I find myself unable to create this scenario.
I found many people posting that this is the solution to making 2D arrays, but no one elaborates on how this solution works.
My core issue is that after I initiate the first array, I can not call the array as it gives me the error that no argument matches the attempted call.
I have tried re naming, re creating, re saving, basically everything I know to do, and I can make an array of arrays in normal C++, but I never in my life have used structs before till unreal, and I can not for the life of me figure out how to iterate over structs while calling the arrays, and iterating over them.
Nothing can be hard coded, and it can not be done in a while loop, I just need to be able to edit these values using another class, and call upon these values using a getter so I can have:
return TArray(2).struct(TArray(2));
return TArray(2).struct(TArray(1));
and get int values.
If someone could point me in the right direction, I don’t mind reading, and watching videos, I am just having a hard time finding a starting point that makes any sense at all.
Even some example code of something completely irrelevant, but using a struct that is being iterated across with an array of arrays.