IMaterialEditor::CreateNewMaterialExpression

Creates a new material expression of the specified class.

References

Module

MaterialEditor

Header

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

Include

#include "IMaterialEditor.h"

Syntax

virtual UMaterialExpression * CreateNewMaterialExpression
(
    UClass * NewExpressionClass,
    const FVector2D & NodePos,
    bool bAutoSelect,
    bool bAutoAssignResource,
    const class UEdGraph * Graph
)

Remarks

Creates a new material expression of the specified class.

Returns

UMaterialExpression* Newly created material expression

Parameters

Parameter

Description

NewExpressionClass

The type of material expression to add. Must be a child of UMaterialExpression.

NodePos

Position of the new node.

bAutoSelect

If true, deselect all expressions and select the newly created one.

bAutoAssignResource

If true, assign resources to new expression.

Graph

Graph to create new expression within.

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