set_dynamic_mesh_material
Assign a UMaterialInterface to a DynamicMeshActor's UDynamicMeshComponent slot in Unreal Engine, then verify the slot holds the material.
Instructions
Assign a UMaterialInterface asset to a slot on a DynamicMeshActor's UDynamicMeshComponent, in an editor transaction. applied is the slot read back after the assignment; the call fails when it does not hold the material.
Returns: { actor_name: string, material_path: string, material_name: string, slot_index: int, applied: bool, note?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor_name | Yes | Label or name of the target DynamicMeshActor (required). | |
| slot_index | No | Material slot to assign. Default 0 (the dynamic mesh only uses slot 0). | |
| material_path | Yes | Asset path of the UMaterialInterface (e.g. /Engine/EngineMaterials/DefaultMaterial) (required). |