Mesh vertices organisation

Does someone know how meshes vertices are organised when having multiple submeshes ( materials )?
I know that such meshes have one vertices list, and submeshcount triangles lists.
Are the vertices sorted like :
[0, N1[ - > vertices for submesh 0
[N1, N2[ - > vertices for submesh 1
[N2, N3[ - > vertices for submesh 2

Or are vertices just mixed altogether?

They’re sorted by whatever way you put them in. The triangle lists that you use with Mesh.SetTriangles dictate which vertices are used for the respective submeshes.

–Eric

Maybe if i create the vertices myself, but what with imported FBX models?

That would depend on the model.

–Eric

ok, well then I’ll reorganise the vertices myself, then :slight_smile:
thanks.