# Is there a way to set the material element slot order?

**URL:** <https://forums.unrealengine.com/t/is-there-a-way-to-set-the-material-element-slot-order/417787>\
**Category:** Rendering\
**Tags:** unreal-engine, question\
**Created:** [February 20, 2018, 12:10am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-the-material-element-slot-order/417787 "2018-02-20T00:10:48Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnFreeman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JohnFreeman](https://forums.unrealengine.com/u/JohnFreeman)\
**Post date:** [February 20, 2018, 12:10am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-the-material-element-slot-order/417787/1 "2018-02-20T00:10:48Z")

</div>

I have two static meshes that were imported from Maya with the same materials assigned to them. However the material element ordering is different between the two. Element 2 and element 4 are flipped in the static mesh on the right in the pic I’m attaching.

This is a problem because I’m using both static meshes in a BP where one part of my BP lets the user assign materials that the static meshes use. So with one having a different element order, it looks wrong.

Is there a way to fix this?

---

<div class="post-metadata">

**Author:** ![JohnFreeman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JohnFreeman](https://forums.unrealengine.com/u/JohnFreeman)\
**Post date:** [February 20, 2018, 12:11am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-the-material-element-slot-order/417787/2 "2018-02-20T00:11:56Z")

</div>

Been searching all over and haven’t been able to find a solution so far.

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [February 20, 2018, 12:24am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-the-material-element-slot-order/417787/3 "2018-02-20T00:24:19Z")

</div>

If you are already using them in a BP you could just set the material for whichever ID you like for each mesh in the construction script.

---

<div class="post-metadata">

**Author:** ![JohnFreeman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JohnFreeman](https://forums.unrealengine.com/u/JohnFreeman)\
**Post date:** [February 20, 2018, 12:36am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-the-material-element-slot-order/417787/4 "2018-02-20T00:36:10Z")

</div>

That wont work for me in this case. I need to be able to make sure the element ordering for my meshes are the same.

---

<div class="post-metadata">

**Author:** ![JohnFreeman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JohnFreeman](https://forums.unrealengine.com/u/JohnFreeman)\
**Post date:** [February 20, 2018, 12:40am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-the-material-element-slot-order/417787/5 "2018-02-20T00:40:25Z")

</div>

Something in Maya is deciding the ordering and I’m not sure what.

---

<div class="post-metadata">

**Author:** ![JohnFreeman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JohnFreeman](https://forums.unrealengine.com/u/JohnFreeman)\
**Post date:** [February 20, 2018, 9:50pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-the-material-element-slot-order/417787/6 "2018-02-20T21:50:25Z")

</div>

So I found a solution that works. This problem seems to be obscure enough that not many of us actually run into it.

---

<div class="post-metadata">

**Author:** ![JohnFreeman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JohnFreeman](https://forums.unrealengine.com/u/JohnFreeman)\
**Post date:** [February 20, 2018, 10:07pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-the-material-element-slot-order/417787/7 "2018-02-20T22:07:05Z")

</div>

Haha, no I’m not gonna leave you hanging on the solution.

Epics answer to this problem is set material by name, this lets your BP assign the correct material to your mesh regardless of the material element order. And this works fine, if your BP only uses one set of materials for everything.

(This is for Maya users as I use Maya)

If you really need to set the material element order for you meshes group and have them all have the same order.

You need to separate your mesh by material, so each part only has one material assigned.  
Group your parts together in the Outliner and then arrange the parts in the order that you need. Export it.  
On import to UE4 tell it to combine meshes on import and now you will have a mesh with the material element order that you set in Maya.

![231339-pic1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/a/10a47733754f71e3d46be77a42efb3827910a974.jpeg)

 ![231341-pic2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/4/0b48d7e47abcdad1acd0f3a45694cae94ff5c255.jpeg)

---

<div class="post-metadata">

**Author:** ![MWomack](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MWomack](https://forums.unrealengine.com/u/MWomack)\
**Post date:** [April 6, 2023, 12:43am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-the-material-element-slot-order/417787/8 "2023-04-06T00:43:09Z")

</div>

This is an old post - so perhaps this udpated fix is already known - but thought I’d share.

If you want to force a material order in Maya so that they import in that same order in UE4 - use this naming convention:

- Use a prefix of “M\_” and a suffix of “\_skin00” or “\_skin01” etc.  
Examples:
- M\_MaterialName\_skin00
- M\_MaterialName\_skin01
- M\_MaterialName\_skin02

---

<div class="post-metadata">

**Author:** ![Dibellagio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dibellagio/32/465490_2.png) [@Dibellagio](https://forums.unrealengine.com/u/Dibellagio)\
**Post date:** [September 8, 2023, 5:58pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-the-material-element-slot-order/417787/9 "2023-09-08T17:58:06Z")

</div>

Old post, but this could help Maya users, it is a pyton plug-in to reorder materials.

> **[Reorder material slots for Maya - Free Utility / External Scripts / Plugins...](https://www.highend3d.com/maya/script/reorder-material-slots-for-maya)**
>
> A simple script to reorder materials slots mel scripts for utilities and external functions in maya, utilities and external functions mel scripts, utilities and external functions or mel scripts, and anything else having to do with utilities and...

---

<div class="post-metadata">

**Author:** ![Jdiab12071](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jdiab12071](https://forums.unrealengine.com/u/Jdiab12071)\
**Post date:** [October 17, 2023, 3:36pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-the-material-element-slot-order/417787/10 "2023-10-17T15:36:38Z")

</div>

Having the prefix and surffix doesn’t do anything when you bring it in unreal. I wish unreal would just let us reorder it in the mesh  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/1/9/a19c5e639ada4a17880b6d1e7f4c1341912cf3d9.png)

---

<div class="post-metadata">

**Author:** ![QuiteDan1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/quitedan1/32/732176_2.png) [@QuiteDan1](https://forums.unrealengine.com/u/QuiteDan1)\
**Post date:** [May 9, 2025, 2:12pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-the-material-element-slot-order/417787/12 "2025-05-09T14:12:25Z")

</div>

If anyone is using Houdini, this naming convention helped me export an fbx with the appropriate material order (using fbx\_material\_name prim attribute).

---

<div class="post-metadata">

**Author:** ![MWomack](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MWomack](https://forums.unrealengine.com/u/MWomack)\
**Post date:** [September 11, 2025, 4:43pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-the-material-element-slot-order/417787/13 "2025-09-11T16:43:28Z")

</div>

Super late reply here… looking at your screenshot, it’s difficult to tell if you used the suffix in Maya “\_skin00” , “\_skin01” , “\_skin02”, or if you just used “\_01” , “\_02” etc.

I just used this same set up today, using the specific prefix of “M\_” and suffix of “\_skin000” , “\_skin001” etc and upon import to Unreal, it will prompt me to “reset to FBX” for the material order change to take effect.

NOTE - In Unreal, the suffix part of the name is removed and is not seen in the Material Slot field when viewing material elements on a static mesh or skeletal mesh.

NOTE 2 - Just realized in my current usage of this I used suffix with an extra digit in there, so “\_skin000” instead of “\_skin00”. Not sure if that matters, but the 3 digit version for sure worked for me just now.

Example of material names in Maya before export:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/7/9/a790f114f82343d30af5565ec0f2dc40ff7cca1d.png)

Example of material slot names in Unreal after import:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/0/930d72041d67a98b1aed3d101f3d3b3cc7175b59.png)

---

<div class="post-metadata">

**Author:** ![Ynoak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ynoak](https://forums.unrealengine.com/u/Ynoak)\
**Post date:** [November 18, 2025, 7:27pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-the-material-element-slot-order/417787/14 "2025-11-18T19:27:05Z")

</div>

It’s based on the first appearance (from top to bottom) of the material in the maya outliner :

In this case the button material will be first on unreal.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/f/8/bf8d4658ebade7ac1367c9373055d14ac708b94b.png)

On this one, the first will be the triangle material

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/6/5a683901eb46828ef30676d63bfda583207e4c0b.png)

On this case in order :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/d/93df45051ea21f9f215a5e1393f71eca32f24163.png)

- material 2
- material 1
- material 3

---

<div class="post-metadata">

**Author:** ![LachanceGVG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LachanceGVG](https://forums.unrealengine.com/u/LachanceGVG)\
**Post date:** [November 27, 2025, 4:09pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-the-material-element-slot-order/417787/15 "2025-11-27T16:09:09Z")

</div>

The thing with this is it will only work on the initial Import, so the 1st time you import the model

Once it’s there, there is no way to add a new Element in-between others and change the order - And if you try, it might even change the order of what you already had set on the initial import
