set_skeletal_mesh_material_slot
Assign a material to an existing material slot on a skeletal mesh asset by slot index or slot name. The slot must already exist; it won't auto-grow the slot array.
Instructions
Assign a material to an existing material slot of a skeletal mesh ASSET (writes FSkeletalMaterial.MaterialInterface in USkeletalMesh::GetMaterials()). Address the slot by slot_index OR slot_name (exactly one). Never auto-grows the slot array.
Returns: { skeletal_mesh_path: string, slot_index: int, slot_name: string, material_path: string, saved: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot_name | No | Name of an existing material slot to resolve to its index (mutually exclusive with slot_index). | |
| slot_index | No | Zero-based index of an existing material slot (mutually exclusive with slot_name). | |
| material_path | Yes | Content path to the UMaterialInterface to assign. | |
| skeletal_mesh_path | Yes | Content path to the USkeletalMesh asset. |