Skip to content
Jigwright
HullForge docs

Set Material Static Switch

Set a static switch override on a material instance. EVERY SWITCH DOUBLES the shader permutation count for that instance, and the reply says what the running total is, because nothing in the editor adds them up.

hf_set_material_static_switchWrite

Arguments

NameTypeDescription
instancereqstring
parameterreqstring
valuereqboolean
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.

Nearby in Materials:

All 28 tools in Materials — 19 more not listed here.