UMaterialEditingLibrary::CreateMaterialExpressionInFunction

Create a new material expression node within the supplied material function

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 * CreateMaterialExpressionInFunction
(
    UMaterialFunction * MaterialFunction,
    TSubclassOf< UMaterialExpression > ExpressionClass,
    int32 NodePosX,
    int32 NodePosY
)

Remarks

Create a new material expression node within the supplied material function

Parameters

Parameter

Description

MaterialFunction

Material function asset to add an expression to

ExpressionClass

Class of expression to add

NodePosX

X position of new expression node

NodePosY

Y position of new expression node

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