add_material_function_input
Add an input pin to an Unreal Engine material function. Specify the function path, pin name, type, and optional default value.
Instructions
Add an input pin to a Material Function.
Args: function_path: Full path to existing material function input_name: Pin name (e.g. "BaseColor", "Strength", "UV") input_type: Scalar | Vector2 | Vector3 | Vector4 | Texture2D | TextureCube | Texture2DArray | VolumeTexture | StaticBool | MaterialAttributes | TextureExternal | Bool | Substrate description: Tooltip text sort_priority: Controls display order (lower = higher) use_preview_as_default: Use preview_value as the default when input is unconnected preview_value: JSON array for default value (e.g. "[0.5]", "[1.0, 0.0, 0.0, 1.0]") pos_x: Graph X position (default -600) pos_y: Graph Y position (default 0)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pos_x | No | ||
| pos_y | No | ||
| input_name | Yes | ||
| input_type | No | Scalar | |
| description | No | ||
| function_path | Yes | ||
| preview_value | No | ||
| sort_priority | No | ||
| use_preview_as_default | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |