# Error SM5 after re-assigning material to another mesh?

**URL:** <https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [April 6, 2021, 3:13am UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496 "2021-04-06T03:13:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![weiniawesome](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@weiniawesome](https://forums.unrealengine.com/u/weiniawesome)\
**Post date:** [April 6, 2021, 3:13am UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496/1 "2021-04-06T03:13:25Z")

</div>

The material is showing on the original datasmith file. After I reimport the scene file in fbx format and reassign the material to the new fbx models. The shader is not compiling and there are few errors that appeared:

[SM5] /Engine/Private/GpuSkinVertexFactory.ush(804,3-74): warning X4000: use of potentially uninitialized variable ((unknown))  
[SM5] /Engine/Private/HitProxyVertexShader.usf(27,23-33): error X4503: output TEXCOORD6 used more than once  
[SM5] /Engine/Private/HitProxyPixelShader.usf(24,23-33): error X3536: Duplicated input semantics can’t change type, size, or layout (‘TEXCOORD6’).  
[SM5] /Engine/Private/GpuSkinVertexFactory.ush(180,24-34): error X3536: Duplicated input semantics can’t change type, size, or layout (‘TEXCOORD0’).  
[SM5] /Engine/Private/LightMapDensityShader.usf(162,23-33): error X3536: Duplicated input semantics can’t change type, size, or layout (‘TEXCOORD6’).  
[SM5] /Engine/Private/GpuSkinVertexFactory.ush(180,24-34): error X4503: output TEXCOORD6 used more than once  
[SM5] /Engine/Private/GpuSkinVertexFactory.ush(180,24-34): error X4503: output TEXCOORD7 used more than once  
[SM5] /Engine/Private/LightMapDensityShader.usf(16,23-33): error X4503: output TEXCOORD6 used more than once

Can anyone help and give suggestions on how to solve the problem.

---

<div class="post-metadata">

**Author:** ![Andy1210](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Andy1210](https://forums.unrealengine.com/u/Andy1210)\
**Post date:** [April 26, 2021, 11:56am UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496/2 "2021-04-26T11:56:42Z")

</div>

I have the same issue, did you find any solution since then?

---

<div class="post-metadata">

**Author:** ![raptoreagle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@raptoreagle](https://forums.unrealengine.com/u/raptoreagle)\
**Post date:** [April 26, 2021, 6:33pm UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496/3 "2021-04-26T18:33:24Z")

</div>

[SM5] /Engine/Private/HitProxyPixelShader.usf(24,23-33): error X3536: Duplicated input semantics can’t change type, size, or layout (‘TEXCOORD6’).  
[SM5] /Engine/Private/GpuSkinVertexFactory.ush(804,3-74): warning X4000: use of potentially uninitialized variable ((unknown))  
[SM5] /Engine/Private/HitProxyVertexShader.usf(27,23-33): error X4503: output TEXCOORD6 used more than once  
[SM5] /Engine/Private/GpuSkinVertexFactory.ush(180,24-34): error X3536: Duplicated input semantics can’t change type, size, or layout (‘TEXCOORD0’).  
[SM5] /Engine/Private/GpuSkinVertexFactory.ush(180,24-34): error X4503: output TEXCOORD6 used more than once  
[SM5] /Engine/Private/GpuSkinVertexFactory.ush(180,24-34): error X4503: output TEXCOORD7 used more than once

getting the same errors. have you found any solution?

---

<div class="post-metadata">

**Author:** ![alucula](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alucula](https://forums.unrealengine.com/u/alucula)\
**Post date:** [May 11, 2021, 6:13am UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496/4 "2021-05-11T06:13:41Z")

</div>

Same Issue here using the Automotive Materials. It’s strange how this got triggered from literally applying a material to another mesh to test and now all the project seems to be broken without materials. Does anyone have suggestion/time to help?

* * *

LogShaderCompilers: Warning: Failed to compile Material /Engine/Transient.M\_Opaque\_Master for platform PCD3D\_SM5, Default Material will be used in game.  
LogShaderCompilers: Display: /Engine/Private/HitProxyPixelShader.usf(24,23-33): err0r X3536: Duplicated input semantics can’t change type, size, or layout (‘TEXCOORD6’).  
LogShaderCompilers: Display: /Engine/Private/GpuSkinVertexFactory.ush(180,24-34): err0r X3536: Duplicated input semantics can’t change type, size, or layout (‘TEXCOORD0’).  
LogShaderCompilers: Display: /Engine/Private/GpuSkinVertexFactory.ush(804,3-74): warning X4000: use of potentially uninitialized variable ((unknown))  
LogShaderCompilers: Display: /Engine/Private/HitProxyVertexShader.usf(27,23-33): err0r X4503: output TEXCOORD6 used more than once  
LogShaderCompilers: Display: /Engine/Private/GpuSkinVertexFactory.ush(180,24-34): err0r X4503: output TEXCOORD6 used more than once  
LogShaderCompilers: Display: /Engine/Private/GpuSkinVertexFactory.ush(180,24-34): err0r X4503: output TEXCOORD7 used more than once  
MaterialEditorStats: Error: [SM5] /Engine/Private/HitProxyPixelShader.usf(24,23-33): error X3536: Duplicated input semantics can’t change type, size, or layout (‘TEXCOORD6’).  
MaterialEditorStats: Error: [SM5] /Engine/Private/GpuSkinVertexFactory.ush(180,24-34): error X3536: Duplicated input semantics can’t change type, size, or layout (‘TEXCOORD0’).  
MaterialEditorStats: Error: [SM5] /Engine/Private/GpuSkinVertexFactory.ush(804,3-74): warning X4000: use of potentially uninitialized variable ((unknown))  
MaterialEditorStats: Error: [SM5] /Engine/Private/HitProxyVertexShader.usf(27,23-33): error X4503: output TEXCOORD6 used more than once  
MaterialEditorStats: Error: [SM5] /Engine/Private/GpuSkinVertexFactory.ush(180,24-34): error X4503: output TEXCOORD6 used more than once  
MaterialEditorStats: Error: [SM5] /Engine/Private/GpuSkinVertexFactory.ush(180,24-34): error X4503: output TEXCOORD7 used more than once

* * *

---

<div class="post-metadata">

**Author:** ![austinhein](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@austinhein](https://forums.unrealengine.com/u/austinhein)\
**Post date:** [May 11, 2021, 3:26pm UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496/5 "2021-05-11T15:26:32Z")

</div>

Getting the same errors. doesn’t happen in other projects with the same objects. it seems to be a setting that was ticked that I was unaware of.

if anybody figures this out please drop the solution!!!

/Engine/Private/GpuSkinVertexFactory.ush(804,3-74): warning X4000: use of potentially uninitialized variable ((unknown))

/Engine/Private/LightMapDensityShader.usf(16,23-33): err0r X4503: output TEXCOORD6 used more than once

/Engine/Private/HitProxyVertexShader.usf(27,23-33): err0r X4503: output TEXCOORD6 used more than once

/Engine/Private/HitProxyPixelShader.usf(24,23-33): err0r X3536: Duplicated input semantics can’t change type, size, or layout (‘TEXCOORD6’).

/Engine/Private/LightMapDensityShader.usf(162,23-33): err0r X3536: Duplicated input semantics can’t change type, size, or layout (‘TEXCOORD6’).

/Engine/Private/GpuSkinVertexFactory.ush(180,24-34): err0r X4503: output TEXCOORD6 used more than once

/Engine/Private/GpuSkinVertexFactory.ush(180,24-34): err0r X4503: output TEXCOORD7 used more than once

/Engine/Private/GpuSkinVertexFactory.ush(180,24-34): err0r X3536: Duplicated input semantics can’t change type, size, or layout (‘TEXCOORD0’).

---

<div class="post-metadata">

**Author:** ![alucula](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alucula](https://forums.unrealengine.com/u/alucula)\
**Post date:** [May 11, 2021, 4:30pm UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496/6 "2021-05-11T16:30:25Z")

</div>

## I also tried to reinstall from scratch windows 10 and re-download Ue4.26.2 and also re-downloading the automotive materials and now I have the same problem happening on the master material “M\_Opaque\_Master”. I can’t get my head around it.. even if you try debugging it by applying the simpliest material at the material output there are still the same errors

[SM5] /Engine/Private/GpuSkinVertexFactory.ush(180,24-34): error X4503: output TEXCOORD7 used more than once  
[SM5] /Engine/Private/GpuSkinVertexFactory.ush(804,3-74): warning X4000: use of potentially uninitialized variable ((unknown))  
[SM5] /Engine/Private/LightMapDensityShader.usf(16,23-33): error X4503: output TEXCOORD6 used more than once  
[SM5] /Engine/Private/HitProxyVertexShader.usf(27,23-33): error X4503: output TEXCOORD6 used more than once  
[SM5] /Engine/Private/HitProxyPixelShader.usf(24,23-33): error X3536: Duplicated input semantics can’t change type, size, or layout (‘TEXCOORD6’).  
[SM5] /Engine/Private/GpuSkinVertexFactory.ush(180,24-34): error X3536: Duplicated input semantics can’t change type, size, or layout (‘TEXCOORD0’).  
[SM5] /Engine/Private/LightMapDensityShader.usf(162,23-33): error X3536: Duplicated input semantics can’t change type, size, or layout (‘TEXCOORD6’).  
[SM5] /Engine/Private/GpuSkinVertexFactory.ush(180,24-34): error X4503: output TEXCOORD6 used more than once

---

<div class="post-metadata">

**Author:** ![AdamSerhaneFORD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/adamserhaneford/32/619444_2.png) [@AdamSerhaneFORD](https://forums.unrealengine.com/u/AdamSerhaneFORD)\
**Post date:** [May 25, 2021, 11:43pm UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496/7 "2021-05-25T23:43:09Z")

</div>

I am getting the same issues. Wanted to know if anyone had an update to this problem.

---

<div class="post-metadata">

**Author:** ![CsgMikesell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CsgMikesell](https://forums.unrealengine.com/u/CsgMikesell)\
**Post date:** [May 26, 2021, 1:18pm UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496/8 "2021-05-26T13:18:51Z")

</div>

I’m getting the same issue with the Automotive materials, particularly anything coming from M\_Opaque\_Master. It’s possible this issue started when I tried applying one the the MIs to a skeletal mesh. I have been using these materials for years without issue until yesterday when I got an asset as a skeletal mesh which is not typical for me.

 ![2021-05-26 09_17_08-Window](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/8/5831b395d1e57c526177203fa62e7d6df9eb8ad6.png)

---

<div class="post-metadata">

**Author:** ![AdamSerhaneFORD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/adamserhaneford/32/619444_2.png) [@AdamSerhaneFORD](https://forums.unrealengine.com/u/AdamSerhaneFORD)\
**Post date:** [June 8, 2021, 1:31pm UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496/9 "2021-06-08T13:31:51Z")

</div>

Wanted to add a bump to this. I am still getting this error and really hurting my workflow. Wanted to know if there is a fix for this!

---

<div class="post-metadata">

**Author:** ![puzzola80](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/puzzola80/32/88711_2.png) [@puzzola80](https://forums.unrealengine.com/u/puzzola80)\
**Post date:** [June 11, 2021, 2:06pm UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496/10 "2021-06-11T14:06:07Z")

</div>

I have the exact same problem and am finding it quite frustrating now. I hope a solution is found soon?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e171d04f1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e171d04f1](https://forums.unrealengine.com/u/anonymous_user_e171d04f1)\
**Post date:** [June 15, 2021, 4:02am UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496/11 "2021-06-15T04:02:50Z")

</div>

Bump…Anyone found a solution yet by chance?

---

<div class="post-metadata">

**Author:** ![AdamSerhaneFORD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/adamserhaneford/32/619444_2.png) [@AdamSerhaneFORD](https://forums.unrealengine.com/u/AdamSerhaneFORD)\
**Post date:** [June 16, 2021, 3:45pm UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496/12 "2021-06-16T15:45:08Z")

</div>

I am still having this problem. Any help will be amazing!  
I can get it to sometimes work when I check the the USE Object UVs option. But that only works some times.

---

<div class="post-metadata">

**Author:** ![iwa920](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/iwa920/32/88716_2.png) [@iwa920](https://forums.unrealengine.com/u/iwa920)\
**Post date:** [June 24, 2021, 3:13pm UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496/13 "2021-06-24T15:13:17Z")

</div>

Has anyone solved it?  
I also get an error when assigning to Skeltal Mesh.

---

<div class="post-metadata">

**Author:** ![iwa920](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/iwa920/32/88716_2.png) [@iwa920](https://forums.unrealengine.com/u/iwa920)\
**Post date:** [June 25, 2021, 7:37am UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496/14 "2021-06-25T07:37:06Z")

</div>

A Very kind person taught me the solution !  
Share here.

> <https://twitter.com/T_Sumisaki/status/1408276858156634112>
>
> Kunio Iwata @IWA920

 ![object_uv](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/1/61ffa234a5ddc5d7b60743fb98a0c2240ac27c41.jpeg)

---

<div class="post-metadata">

**Author:** ![AdamSerhaneFORD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/adamserhaneford/32/619444_2.png) [@AdamSerhaneFORD](https://forums.unrealengine.com/u/AdamSerhaneFORD)\
**Post date:** [June 28, 2021, 6:25pm UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496/15 "2021-06-28T18:25:36Z")

</div>

This is a quick solve but not a solution to data without UVs. Not being able to use tri-planner Projection hurts my workflow a lot with automotive vehicles.

Still need it to work with out having to use Object uvs on a skeletal mesh.

---

<div class="post-metadata">

**Author:** ![AdamSerhaneFORD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/adamserhaneford/32/619444_2.png) [@AdamSerhaneFORD](https://forums.unrealengine.com/u/AdamSerhaneFORD)\
**Post date:** [July 6, 2021, 9:02pm UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496/16 "2021-07-06T21:02:11Z")

</div>

It looks like everything is fixed in the new build 4.27. Happy everything works now.

---

<div class="post-metadata">

**Author:** ![AaronVFX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AaronVFX](https://forums.unrealengine.com/u/AaronVFX)\
**Post date:** [July 14, 2021, 3:04am UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496/19 "2021-07-14T03:04:54Z")

</div>

For those not using 4.27 and you want to fix this, untick ‘used with skeletal meshes’ in the Opaque Master material:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/b/eb285fb5310ac5df9b2fd9a69fd3aa89d8841622.png)

This should fix your problems and stop the error message, it will likely rebuild all the shaders that use this material, and you might still have hte error in the Material Instances but the materials won’t be broken anymore

---

<div class="post-metadata">

**Author:** ![ZENG1120](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZENG1120](https://forums.unrealengine.com/u/ZENG1120)\
**Post date:** [July 14, 2021, 4:01pm UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496/20 "2021-07-14T16:01:59Z")

</div>

Thanks!

---

<div class="post-metadata">

**Author:** ![FaradayPrime](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FaradayPrime](https://forums.unrealengine.com/u/FaradayPrime)\
**Post date:** [September 19, 2021, 5:20pm UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496/21 "2021-09-19T17:20:14Z")

</div>

THIS WORKED

thank you much!

---

<div class="post-metadata">

**Author:** ![Chaladin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chaladin](https://forums.unrealengine.com/u/Chaladin)\
**Post date:** [February 1, 2022, 2:57am UTC](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496/22 "2022-02-01T02:57:11Z")

</div>

YEAAH IT DID THE TRICK ! (Unreal 5 early access 2)  
It kept rechecking itself but we had an instance of this material applied to a skeletal mesh. After removing it, it went well for good !  
Thank you very much

[Next page](https://forums.unrealengine.com/t/error-sm5-after-re-assigning-material-to-another-mesh/211496.md?page=2)
