Can you make 2D arrays in C++? If so, how?

If you mean a multidimensional array, I believe you can if you don’t plan on exposing them in the editor using UPROPERTY(). Otherwise if you are using it purely in C++ I think you can do something like TArray<TArray<int>> foo;

Otherwise if you need to expose them to the editor, the closest thing I could find was using a struct.

1 Like