create_material_instance
Create a Material Instance from a parent material with optional scalar, vector, and texture parameter overrides. Force recreation if the asset already exists.
Instructions
Create a Material Instance from a parent material.
Returns error if asset already exists. Pass force=true to delete and recreate.
Args: parent_path: Full path to parent (e.g. "/Game/Materials/M_Base") name: Instance name (e.g. "MI_Red") scalar_params: JSON dict of scalar overrides — {"Opacity": 0.5, "Metallic": 1.0} vector_params: JSON dict of vector overrides — {"BaseColor": [1.0, 0.0, 0.0, 1.0]} texture_params: JSON dict of texture overrides — {"Texture": "/Game/Textures/T_Wood"} force: If true, delete existing asset and recreate (default false)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | No | /Game/Materials | |
| force | No | ||
| parent_path | Yes | ||
| scalar_params | No | ||
| vector_params | No | ||
| texture_params | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |