Navigation
API > API/Editor > API/Editor/MaterialEditor > API/Editor/MaterialEditor/FMaterialEditorUtilities
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static MaterialExpressionClass * CreateNewMaterialExpression
(
const UEdGraph* Graph, |
Creates a new material expression of the specified class on the material represented by a graph. | MaterialEditorUtilities.h | |
static UMaterialExpression * CreateNewMaterialExpression
(
const UEdGraph* Graph, |
Creates a new material expression of the specified class on the material represented by a graph. | MaterialEditorUtilities.h |
CreateNewMaterialExpression(const UEdGraph *, const UE::Slate::FDeprecateVector2DParameter &, bool, bool)
Description
Creates a new material expression of the specified class on the material represented by a graph.
| Name | CreateNewMaterialExpression |
| Type | function |
| Header File | /Engine/Source/Editor/MaterialEditor/Public/MaterialEditorUtilities.h |
| Include Path | #include "MaterialEditorUtilities.h" |
template<typename MaterialExpressionClass>
static MaterialExpressionClass * CreateNewMaterialExpression
(
const UEdGraph * Graph,
const UE::Slate::FDeprecateVector2DParameter & NodePos,
bool bAutoSelect,
bool bAutoAssignResource
)
Parameters
| Name | Remarks |
|---|---|
| Graph | Graph representing a material. |
| 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. |
CreateNewMaterialExpression(const class UEdGraph , UClass , const UE::Slate::FDeprecateVector2DParameter &, bool, bool)
Description
Creates a new material expression of the specified class on the material represented by a graph.
| Name | CreateNewMaterialExpression |
| Type | function |
| Header File | /Engine/Source/Editor/MaterialEditor/Public/MaterialEditorUtilities.h |
| Include Path | #include "MaterialEditorUtilities.h" |
| Source | /Engine/Source/Editor/MaterialEditor/Private/MaterialEditorUtilities.cpp |
static UMaterialExpression * CreateNewMaterialExpression
(
const class UEdGraph * Graph,
UClass * NewExpressionClass,
const UE::Slate::FDeprecateVector2DParameter & NodePos,
bool bAutoSelect,
bool bAutoAssignResource
)
Parameters
| Name | Remarks |
|---|---|
| Graph | Graph representing a material. |
| 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. |