create_material_function_expression
Creates a UMaterialExpression node inside a UMaterialFunction graph, enabling construction of material function logic before pin wiring and recompilation.
Instructions
Create a new UMaterialExpression node inside a UMaterialFunction's internal graph (same shape as create_material_expression, scoped to a function instead of a material). Use connect_material_function_pins to wire it and recompile_material_function to recompile.
Returns: { material_function_path: string, expression_class_name: string, expression_name: string, node_pos_x: number, node_pos_y: number, success: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_pos_x | No | Optional X position in the function's graph editor (default 0) | |
| node_pos_y | No | Optional Y position in the function's graph editor (default 0) | |
| expression_class_name | Yes | Class name of the UMaterialExpression to create, e.g. 'MaterialExpressionMultiply' or a full path like '/Script/Engine.MaterialExpressionPower' | |
| material_function_path | Yes | Asset path of the UMaterialFunction |