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_switchWriteArguments
| Name | Type | Description |
|---|---|---|
instancereq | string | |
parameterreq | string | |
valuereq | boolean | |
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. |
Related tools
Nearby in Materials:
- Recompile Material
- Remove Material Node
- Reset Material Parameter
- Set Collection Parameter
- Set Material Layer
- Set Material Node Property
- Set Material Parameter
- Set Material Property
All 28 tools in Materials — 19 more not listed here.