Navigation
API > API/Editor > API/Editor/MaterialEditor > API/Editor/MaterialEditor/UMaterialEditingLibrary
Description
Refresh an open Material Editor's preview from its source asset. Call after script-driven edits so the editor reflects the change. No-op if no editor is open for the asset. Discards any in-editor edits not yet applied back to the asset.
| Name | RefreshMaterialEditor |
| Type | function |
| Header File | /Engine/Source/Editor/MaterialEditor/Public/MaterialEditingLibrary.h |
| Include Path | #include "MaterialEditingLibrary.h" |
| Source | /Engine/Source/Editor/MaterialEditor/Private/MaterialEditingLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="MaterialEditing")
static void RefreshMaterialEditor
(
UMaterial * Material
)
Parameters
| Name | Remarks |
|---|---|
| Material | Material whose open editor should be refreshed. |