UMaterialEditingLibrary::CreateMaterialExpression

Create a new material expression node within the supplied material

Unreal Engine C++ API Reference > Editor > MaterialEditor > UMaterialEditingLibrary

References

   
Module MaterialEditor
Header /Engine/Source/Editor/MaterialEditor/Public/MaterialEditingLibrary.h
Include #include "MaterialEditingLibrary.h"
Source /Engine/Source/Editor/MaterialEditor/Private/MaterialEditingLibrary.cpp
static [UMaterialExpression](API\Runtime\Engine\Materials\UMaterialExpression) * CreateMaterialExpression
(
    [UMaterial](API\Runtime\Engine\Materials\UMaterial) * Material,
    [TSubclassOf](API\Runtime\CoreUObject\Templates\TSubclassOf)< [UMaterialExpression](API\Runtime\Engine\Materials\UMaterialExpression) > ExpressionClass,
    int32 NodePosX,
    int32 NodePosY
)

Remarks

Create a new material expression node within the supplied material

Parameters

Name Description
Material Material 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

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library