UMaterialGraph

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Classes/MaterialGraph/MaterialGraph.h

Include

#include "MaterialGraph/MaterialGraph.h"

Syntax

class UMaterialGraph : public UEdGraph

Variables

Name Description

Public variable

UMaterial *

 

Material

Material this Graph represents

Public variable

FSetMaterialDir...

 

MaterialDirtyDelegate

Marks the Material Editor as dirty so that user prompted to apply change

Public variable

UMaterialFuncti...

 

MaterialFunction

Material Function this Graph represents (NULL for Materials)

Public variable

TArray< FMateri...

 

MaterialInputs

List of Material Inputs (not set up for Material Functions)

Public variable

FString

 

OriginalMaterialFullName

The name of the material that we are editing

Public variable

FRealtimeStateG...

 

RealtimeDelegate

Checks if Material Editor is in realtime mode, so we update SGraphNodes every frame

Public variable

UMaterialGraphN...

 

RootNode

Root node representing Material inputs (NULL for Material Functions)

Public variable

FToggleExpressi...

 

ToggleCollapsedDelegate

Toggles the bCollapsed flag of a material expression and updates material editor

Constructors

Name Description

Public function

UMaterialGraph

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

UMaterialGra...

 

AddComment

(
    UMaterialExpressionComment* Co...,
    bool bIsUserInvoked
)

Add a Comment to the Graph

Public function

UMaterialGra...

 

AddExpression

(
    UMaterialExpression* Expressio...,
    bool bUserInvoked
)

Add an Expression to the Graph

Public function Const

void

 

GetUnusedExpressions

(
    TArray< class UEdGraphNode* > ...
)

Get a list of nodes representing expressions that are not used in the Material

Public function Const

bool

 

IsInputActive

(
    UEdGraphPin* GraphPin
)

Check whether a material input should be marked as active

Public function

void

 

LinkGraphNodesFromMaterial()

Link all of the Graph nodes using the Material's connections

Public function Const

void

 

LinkMaterialExpressionsFromGraph()

Link the Material using the Graph node's connections

Public function

void

 

RebuildGraph()

Completely rebuild the graph from the material, removing all old nodes

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