Not getting any results here and as I think about it, maybe a little more detail is necessary.
I am creating an ArrayMesh passing in all my arrays for vertices, normals, uvs, indexes, uv2s, and custom0-3. Then I create a MeshDataTool which I try to use to CommitToSurface to more quickly push later updates for specific vertices, etc.
So whenever the mesh is created or resized, I use the following process
(lots of code to create the surfaceArray object)
arrayMesh.AddSurfaceFromArrays(Mesh.PrimitiveType.Triangles, surfaceArray, null, null, format);
arrayMesh.RegenNormalMaps();
mdt.CreateFromSurface(arrayMesh, 0);
When the mesh changes without needing resizing, I try to use the mdt:
arrayMesh.ClearSurfaces();
mdt.CommitToSurface(arrayMesh);
When I run this code the Vertices, UVs, etc all update normally, but there is NO custom0-3 data present anymore in the ArrayMesh. It is all flushed out.
Is this a bug?