set_material_instance_static_switch
Set and persist a static bool switch override on a Material Instance Constant in Unreal Engine 5, rebuilding the static permutation and verifying the saved value.
Instructions
Set a static-switch (static bool) parameter override on a Material Instance Constant, then rebuild the static permutation and persist. Reads the value back via the getter (the engine value-setter wrapper always returns false, so its return is never trusted). Editor-only.
Returns: { material_instance_path: string, parameter_name: string, association: string, requested_value: bool, value: bool, found: bool, saved: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Bool value to assign to the switch. | |
| 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-switch parameter. | |
| material_instance_path | Yes | Content path to the UMaterialInstanceConstant. |