Set Mesh Material
Assign a material to a slot on a static mesh asset or a placed actor, and verify by reading the slot back. Setting it on an ACTOR overrides only that instance; setting it on the MESH changes the default for everything using it.
hf_set_mesh_materialWriteArguments
| Name | Type | Description |
|---|---|---|
materialreq | string | Material or Material Instance asset path, or 'none' to clear the slot. |
objectreq | string | Static mesh asset path, or an actor label in the current level. |
force | boolean = false | Edit even when the asset cannot currently be saved - for example when revision control is configured but disconnected. The change will be made in memory and WILL BE LOST unless the underlying problem is fixed before saving. Only pass this if you intend to discard the work or fix the connection first. |
slot | integer = 0 | Material slot index. hf_get_mesh_materials lists them. |
Related tools
Also in Materials: