Code (CSharp): var renderMesh = EntityManager.GetSharedComponentData<RenderMesh>(meshEntity); renderMesh.mesh.vertices = Vertices.ToArray(); renderMesh.mesh.triangles = Triangles.ToArray(); renderMesh.mesh.colors = Colors.ToArray(); renderMesh.mesh.RecalculateNormals(); The color order is totally wrong,the last one should be the first.Why? Looking forward to your reply,thx!
I found the bug,it's caused by the entity order in the job Execute,the last one always come first! This is kind of odd!
So the right entity order should be 0->1->2->3,but in the Job Execute,the entity order is 3->1->2->0,I do not understand why!