compile_material
Recompiles a UMaterial asset to refresh its child material instances and viewports, marking the package dirty without saving it.
Instructions
Recompile a UMaterial asset through UMaterialEditingLibrary::RecompileMaterial: refreshes its child material instances and the viewports and marks the package dirty, without saving. recompiled is always true and does not report shader errors. Material functions use recompile_material_function.
Returns: { material: string, recompiled: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material_path | Yes | UMaterial asset path, e.g. "/Game/Materials/M_Rock"; a material instance or function path fails with Material not found. |