Module |
|
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
(
class UMaterialInterface * NewParent,
bool RecacheShader
)
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!
Parameter |
Description |
---|---|
NewParent |
The new parent for this material instance. |
RecacheShader |
Will recache required shaders. |