Skip to content
Jigwright

Recompile Material

Recompile a base Material and report any compile errors. Editing a material graph does NOT recompile it - nothing renders differently until this runs, which makes a correct edit look like it failed.

hf_recompile_materialWrite

Arguments

NameTypeDescription
materialreqstringAsset path of a base Material. Instances do not compile; set their parameters instead.
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.

Also in Materials: