add_material_attribute_layers_node
Adds a MaterialAttributeLayers expression to a UMaterial asset, enables material attributes so separate pins stop driving it, wires the node into MaterialAttributes, then recompiles and saves.
Instructions
Adds a new MaterialAttributeLayers expression to a UMaterial asset, turns on bUseMaterialAttributes (the separate pins such as Base Color stop driving the material), wires the node into MaterialAttributes, recompiles and saves. Not idempotent: each call adds another node. Fails when the save fails; returns connected_material_attributes and num_expressions.
Returns: { material_path: string, expression_added: bool, expression_class: string, connected_material_attributes: bool, use_material_attributes: bool, num_expressions: int, recompiled: bool, saved: bool, node_name: string, save_error: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_name | No | Label echoed back in the reply only; it does not name or find any node in the graph | |
| material_path | Yes | Object path to the UMaterial, e.g. /Game/MyGame/M_Example |