UMaterialEditingLibrary::DuplicateMaterialExpression

Duplicates the provided material expression adding it to the same material / material function, and copying parameters.

Choose your operating system:

Windows

macOS

Linux

References

Module

MaterialEditor

Header

/Engine/Source/Editor/MaterialEditor/Public/MaterialEditingLibrary.h

Include

#include "MaterialEditingLibrary.h"

Source

/Engine/Source/Editor/MaterialEditor/Private/MaterialEditingLibrary.cpp

Syntax

static UMaterialExpression * DuplicateMaterialExpression
(
    UMaterial * Material,
    UMaterialFunction * MaterialFunction,
    UMaterialExpression * Expression
)

Remarks

Duplicates the provided material expression adding it to the same material / material function, and copying parameters.

Does not duplicate transient properties (Ex: GraphNode). @param Material Material asset to add an expression to @param MaterialFunction Specified if adding an expression to a MaterialFunction, used as Outer for new expression object @param SourceExpression Expression to be duplicated