Navigation
API > API/Plugins > API/Plugins/TextureGraphEditor > API/Plugins/TextureGraphEditor/ITG_Editor
References
| Module | TextureGraphEditor |
| Header | /Engine/Plugins/Experimental/TextureGraph/Source/TextureGraphEditor/Public/ITG_Editor.h |
| Include | #include "ITG_Editor.h" |
virtual UTG_Expression * CreateNewExpression
(
UClass * NewExpressionClass,
const FVector2D & NodePos,
bool bAutoSelect,
bool bAutoAssignResource,
const class UEdGraph * Graph
)
Remarks
Creates a new material expression of the specified class. UMaterialExpression* Newly created material expression
Parameters
| Name | Description |
|---|---|
| NewExpressionClass | The type of mix expression to add. Must be a child of UTG_Expression. |
| 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. |