Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Materials > UMaterialInstanceConstant
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialInstanceConstant.h |
Include | #include "Materials/MaterialInstanceConstant.h" |
Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialInstanceConstant.cpp |
void SetParentEditorOnly
&40;
class UMaterialInterface &42; NewParent,
bool RecacheShader
&41;
Remarks
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!
Parameters
Name | Description |
---|---|
NewParent | The new parent for this material instance. |
RecacheShader | Will recache required shaders. |