UMaterialInstanceConstant::SetParentEditorOnly

Set the parent of this material instance.

Windows
MacOS
Linux

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

Syntax

void SetParentEditorOnly
(
    class UMaterialInterface * NewParent,
    bool RecacheShader
)

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

Parameter

Description

NewParent

The new parent for this material instance.

RecacheShader

Will recache required shaders.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss