Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UMaterialInstanceConstant
Description
Set the parent of this material instance. This function may only be called in the Editor! WARNING: You MUST call PostEditChange afterwards to propagate changes to other materials in the chain!
| Name | SetParentEditorOnly |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialInstanceConstant.h |
| Include Path | #include "Materials/MaterialInstanceConstant.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialInstanceConstant.cpp |
void SetParentEditorOnly
(
class UMaterialInterface * NewParent,
bool RecacheShader
)
Parameters
| Name | Remarks |
|---|---|
| NewParent | The new parent for this material instance. |
| RecacheShader | Will recache required shaders. |