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.
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 |