set_material_instance_static_component_mask
Configure a static RGBA component-mask parameter override on a Material Instance Constant, rebuild the permutation, and save. Use for editor-only R/G/B/A bool mask changes.
Instructions
Set a static component-mask (R/G/B/A bools) parameter override on a Material Instance Constant, rebuild the static permutation and persist. Reads back via GetParameterValue. Editor-only.
Returns: { material_instance_path: string, parameter_name: string, association: string, requested: {r,g,b,a}, value: {r,g,b,a}, found: bool, saved: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | Optional bool channel mask (default false). | |
| b | No | Optional bool channel mask (default false). | |
| g | No | Optional bool channel mask (default false). | |
| r | No | Optional bool channel mask (default false). | |
| association | No | Optional EMaterialParameterAssociation: "Global" (default), "Layer", or "Blend". | |
| layer_index | No | Optional zero-based index for Layer/Blend association (ignored for Global). | |
| parameter_name | Yes | Name of the static component-mask parameter. | |
| material_instance_path | Yes | Content path to the UMaterialInstanceConstant. |