Set Material Layer
Assign a material function into one layer or blend slot on an instance. This is a STATIC parameter: changing it recompiles the instance's shaders rather than updating a value.
hf_set_material_layerWriteArguments
| Name | Type | Description |
|---|---|---|
functionreq | string | Material function to put there. An empty string clears the slot. |
indexreq | integer | Position in that array. Must already exist: this assigns into the stack the parent defines rather than growing it. |
instancereq | string | |
slotreq | string | Which array to write to. Layer | Blend |
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 Node Property
- Set Material Parameter
- Set Material Property
- Set Material Static Switch
All 28 tools in Materials — 19 more not listed here.