editor_set_static_model_material
Assigns an existing material asset to a specific slot on a loaded StaticModel with Undo/Redo support. Validates the actor, slot, and material before applying the scene change.
Instructions
Assigns an existing FlaxEngine.MaterialBase asset to one slot of a loaded StaticModel through Undo/Redo history. The bridge validates the actor, slot, and material before changing the scene.
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": {
"actorId": "<actorId>",
"slotIndex": "<slotIndex>",
"materialId": "<materialId>"
},
"name": "editor_set_static_model_material"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actorId | Yes | StaticModel actor GUID from editor_scene_graph. | |
| slotIndex | Yes | Zero-based material slot index from the assigned model. | |
| materialId | Yes | FlaxEngine.Material or MaterialInstance asset GUID from content_search. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor | Yes | ||
| slotIndex | Yes | ||
| materialId | Yes | ||
| mainThreadId | Yes | ||
| materialPath | Yes |