Skip to content
Jigwright

Create Material Instance

Create a Material Instance from a parent material. This is how you get something whose parameters can be set - parameters cannot be set on a base Material. Verifies the asset exists afterwards. Call hf_save_object to persist it.

hf_create_material_instanceWrite

Arguments

NameTypeDescription
destinationreqstringFull path for the new asset, e.g. /Game/Materials/MI_Rock. Must be under /Game/.
parentreqstringAsset path of the parent Material or Material Instance.

Also in Materials: