When using the “use material attributes” option, there are problems with the material. If we receive data from the Material function, then our material does not compile and throws a “[SM5] Cannot connect a non MaterialAttributes node to a MaterialAttributes pin.” error.
At the same time, if you disable this option, then the material will be displayed and compiled, but then I will not be able to work with terrain layers.
Also, if you directly output the output node from the Material Function to the output node, it will also work, but this is just an example and here we lose all the useful nodes.
Also, if you do not use the Material function, but place all its contents in the material itself, then in the preview window we will see only black material, although it will be displayed correctly on the landscape itself.
Summarize.
When the “use material attributes” option is set, the material is not displayed in the preview window, and if we use the Material function inside the material, the material does not compile at all and gives the error “[SM5] Cannot connect a non MaterialAttributes node to a MaterialAttributes pin.”
Please help solve the problem! This feature has not been working for several months now.
System specification:
Ryzen 2700x
16 GB RAM
GTX 1650
Windows 10 latest version
ALL drivers are up to date. Unreal engine 5 and Epic games launcher latest version.