get_material_instance_static_component_mask
Read a material instance's static component-mask parameter to verify which R/G/B/A channels of a packed mask/ORM texture the shader samples, preventing silent look bugs. Supports Global/Layer/Blend.
Instructions
Read a static component-mask parameter (the R/G/B/A channel checkboxes) on a material instance -- which channels of a packed mask/ORM texture the shader actually samples. Reading the wrong channel is a classic silent look bug: nothing errors, the surface is just uniformly wrong. Supports Global / Layer / Blend association with a layer index. set_material_instance_static_component_mask writes it. Editor-only.
Returns: { material_instance_path: string, parameter_name: string, association: string, value: {r,g,b,a}, found: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. |