How To Change Materials Elements Order? (in a model)

Hi there everybody!
Although I model an object in blender setting certain materials to be in a specific order, once imported in unity their succession change. The problem is that I need them to stay in that order.
I’ve seen an other answer on this forum about the same problem saying is all about the id sequence of faces. Ok, but what does id sequence of faces mean and how can I actually fix the thing?

@Redsman

  1. Put the materials in the order you want
  2. In edit mode, select all vertices
  3. Press W
  4. Select “Sort Mesh Elements”
  5. Sort by “Material”
  6. Done!

Full details here: http://blairwillems.com/2013/05/unity-and-blender-quick-tip-on-order-of-materials-during-import/

And the Blender manual on sorting mesh elements here: https://www.blender.org/manual/modeling/meshes/editing/misc.html

Here is what I did.
As you probably know, the trick @Gerontius told about doesn’t work anymore.
Let’s say we have an object with three faces and three materials.

  1. Go to edit mode, press P and separate By Material.
  2. Export the file (or just save it if you’re using blend files) and let Unity import the model.
  3. Back to blender, select the separated parts of the mesh, the object with the main material should be activated. Press Ctrl+J to join them.
  4. Export the file (or just save it if you’re using blend files) and let Unity import the model.
    and done. Hope this helps.

Blender is just so freaking awesome!!
I know no other software that always has a fix, like Blender :slight_smile:

Hmmm. This doesn’t work for me. I’m on Blender 2.79
Shouldn’t I see some changes in Blender instantly?