create_substrate_slab_node
Add a Substrate Slab BSDF node to a UMaterial graph, save the package, and reuse any existing slab node on re-run.
Instructions
Add a Substrate Slab BSDF node to a UMaterial asset. Performs a real CreateMaterialExpression on the material graph and saves the package. Idempotent: reuses an existing slab node on re-run. Node creation succeeds even when Substrate is disabled (substrate_enabled=false), but the material will not compile/render until Substrate is enabled and the editor restarts.
Returns: { material_path: string, material_name: string, node_id: string, node_class: string, created: bool, already_existed: bool, substrate_enabled: bool, r_substrate_cvar: int, note?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_pos_x | No | Optional graph editor X position; defaults to -400 | |
| node_pos_y | No | Optional graph editor Y position; defaults to 0 | |
| material_path | Yes | Content path to the UMaterial (e.g. /Game/MyGame/M_Example) |