Hello!
I'm trying to make a job that would create big meshes. I don't know how many vertices it will have to create and not even how many meshes (without the job system, I'm creating a List<List<Vector3>> for the vertices for example, and I fill a list until it reaches 65000 vertices, then add a new one, ...).
But I couldn't find how to do that with the job system since when declaring a NativeArray, I have to give it its size.
The only way I found to add an element is to create a new NativeArray with a bigger size and then copying the content of the old one to the new one with a for loop but I guess it's not great for performance...