Any way to do NativeArray of NativeArrays / NativeList / NativeQueue?

So i was trying to made something like :

NativeArray<NativeArray<int>> a = new NativeArray<NativeArray<int>>(10, Allocator.Temp);```
or

NativeArray<NativeList> a = new NativeArray<NativeList>(10, Allocator.Temp);


And then initialize each list but i get an error about blittable data, anyone knows how to do something similar?

Thanks!

If you want a two-dimensional array (array of arrays), you can always represent that as a one-dimensional/flattened array.
You’ll just have to do a little math for finding the correct index.

For high performance scenarios, I’ve always found this method to be more efficient when iterating sequentially over all elements.

Nested native containers not allowed at the moment.

thats a pitty, thank you a lot anyway!

I know, but is necesary if you want to build a custom hash table like im trying to do and things like that

You could potentially write an adapter struct, similar to NativeSlice<>