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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback