ue5_set_material
Applies a material to a StaticMeshComponent on a specified actor using its object path and material asset path.
Instructions
Applies a material to a StaticMeshComponent on an actor. The component is accessed as '.StaticMeshComponent0'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"actorPath": "<actorPath>",
"materialPath": "<materialPath>"
},
"name": "ue5_set_material"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actorPath | Yes | The full object path of the StaticMeshActor. | |
| materialPath | Yes | The asset path of the material (e.g., '/Game/StarterContent/Materials/M_Ground_Grass.M_Ground_Grass'). | |
| elementIndex | No | Material slot index. Default: 0. |