# Layered Material compile error with parameter collection blend (x3004)

**URL:** <https://forums.unrealengine.com/t/layered-material-compile-error-with-parameter-collection-blend-x3004/362922>\
**Category:** Asset Creation\
**Tags:** UE4-12, unreal-engine, compile, question\
**Created:** [July 4, 2016, 5:52pm UTC](https://forums.unrealengine.com/t/layered-material-compile-error-with-parameter-collection-blend-x3004/362922 "2016-07-04T17:52:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gomo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gomo](https://forums.unrealengine.com/u/Gomo)\
**Post date:** [July 4, 2016, 5:52pm UTC](https://forums.unrealengine.com/t/layered-material-compile-error-with-parameter-collection-blend-x3004/362922/1 "2016-07-04T17:52:55Z")

</div>

After updating from 4.11 to 4.12 my material doesn’t compile any more.  
I’ve narrowed problem down to setup visible in attachment.  
Everything works fine when alpha for blending is a constant scalar, but when I connect scalar from Parameter Collection then it doesn’t compile.  
Also It works with PM unless I don’t connect anything to Specular, Roughness or Emissive.

 ![97104-layeredmatdebug.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/0/e20982b78d958abf4b7f3af17d858f064cd2eb60.jpeg)

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [July 5, 2016, 3:08pm UTC](https://forums.unrealengine.com/t/layered-material-compile-error-with-parameter-collection-blend-x3004/362922/2 "2016-07-05T15:08:30Z")

</div>

Hi Gomo,

This was already reported with UE-31792 and has already been fixed internally for 4.13’s release.

Thank you!

Tim

---

<div class="post-metadata">

**Author:** ![Gomo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gomo](https://forums.unrealengine.com/u/Gomo)\
**Post date:** [July 5, 2016, 4:19pm UTC](https://forums.unrealengine.com/t/layered-material-compile-error-with-parameter-collection-blend-x3004/362922/3 "2016-07-05T16:19:46Z")

</div>

Thanks, I found similar bug report just wasn’t sure it is the same thing.

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [July 5, 2016, 6:08pm UTC](https://forums.unrealengine.com/t/layered-material-compile-error-with-parameter-collection-blend-x3004/362922/4 "2016-07-05T18:08:06Z")

</div>

I wasn’t either when I saw another similar, but not the same issue already reported and just tested it in both to be certain that it was actually resolved. 🙂
