Skip to content
Jigwright

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_materialWrite

Arguments

NameTypeDescription
materialreqstringMaterial or Material Instance asset path, or 'none' to clear the slot.
objectreqstringStatic mesh asset path, or an actor label in the current level.
forceboolean
= 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.
slotinteger
= 0
Material slot index. hf_get_mesh_materials lists them.

Also in Materials: