add_material_function_call
Insert a UMaterialFunction call into a UMaterial graph, binding its inputs and outputs as node pins; removes the node if the function cannot be called.
Instructions
Insert a call to a UMaterialFunction into a UMaterial graph: a MaterialFunctionCall node bound to the function, so the function's inputs and outputs become the node's pins. Refused, with the node removed again, when the function cannot be called from this material.
Returns: { material_path: string, function_path: string, node_name: string, node_class: string, expression_count: number }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_name | No | Optional name for the new node; a name another object of the material already has gets a unique variant | |
| function_path | Yes | Full asset path of the UMaterialFunction to call (e.g. '/Game/Functions/MF_Foo.MF_Foo') | |
| material_path | Yes | Full asset path of the UMaterial (e.g. '/Game/MyGame/M_Example') |