UE 5.2 Passing Custom UV 1 Value to Material Layer from Master Material

Using UE 5.2
Tried to add Static Switch Parameters to Choose triplanar or object scale UV’s in Master material that uses Material Layers, passing the result to the “set material attributes” → “Custom UV 1”, then in a Material Layer, trying to “Get Material Attributes” → “Custom UV 1” and using this as the UV for texture sampling in Material Layer. I do not know why, but this does not work.
Master Material


Material Layer

Unpack MAOHR MatFunc

1 Like

I found that the issue was I did not have a Function Input in the graph set to Material Attributes and then Get Material Attributes from the function Input.