With UE 4.26 Material Layer assets are now a standard part of the engine… but they keep on causing crashes when using them with Functions in the Layer.
In my case, the crash often seems related to the use of the “Mask Param” node, when using something like this:
When using the mentioned node outside of a function there’s no issue. correction: Also when using the node directly in the layer it causes a crash but …not always?
The crash occurs when assigning Material Layer Asset that has such a function inside of it to a Material Instance in the Layer Parameter panel.
How to handle this? I’ve already created a bug report, but it seems Material Layers in their current state are difficult to use.
For anyone curious, I’ve attached an example project that crashes when you:
- Create a Material Instance from the supplied Master Material
- Assign the supplied Layer Asset to the created Material Instance in the Layer Parameters function.
[link text][2]