set_material_domain
Set a material's EMaterialDomain and recompile it to switch between Surface, PostProcess, UI, DeferredDecal, LightFunction, or Volume rendering roles.
Instructions
Set a material's domain (EMaterialDomain) and recompile it. 'LightFunction', 'Volume'
Returns: { material: string, material_path: string, previous_domain: string, requested_domain: string, domain: string, domain_set: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | One of 'Surface', 'PostProcess', 'UI', 'DeferredDecal', | |
| material_path | Yes | Full path to the material, e.g. '/Game/MyGame/M_Example.M_Example' |