Is there a way to stop materials being reordered when you reimport a mesh?

Hey.

Is there a way to stop the materials on a mesh being reordered when you reimport the mesh? This happens all the time and the only way i can find to fix it is to manually re-apply the materials in UE4.
When you got like 15 materials on a mesh it becomes a bit of a chore.

cheers

What exactly do you mean by “re-ordered” ?

Have you created UVs for your meshes or are you using a “Multi-Sub-Object” material in your 3D modelling application?

~ Jason

hey,

By re-ordered I mean… the same materials will be on the mesh, but they will occupy different material slots to what they did before the reimport. I think it happens if I reimport a mesh that has had a material either added or deleted in Maya since the last import. It’s literally like UE4 takes that list of materials that are on the mesh, and then just jumbles them around. Everyone here has the same problem, so I assume it’s something wrong with our pipeline.

Each material slot is used by it’s own material in Maya. No sort of Multi-material or anything. Those materials are then applied to individual faces in Maya.
We don’t import the materials with the mesh due to our file structure. The importer will import materials and textures into the same folder as the mesh, which is no good for us. ( not sure if this makes a difference to the materials getting mixed up or not)
All meshes have at least 1 UV set.

Any help would be greatly appreciated.

cheers

Had the same problem, try changing either the output name of the materials in Maya to the same name as the materials in UE4. I dont know if you gotta have the materials in the same folder in Unreal Engine to make it automatically assign the correct material. Either that or changing the material names to the ones in Maya. Should work.

Thanks for the reply.
I shall certainly give that a go.

:slight_smile:
cheers