UMaterialGraphNode

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

UnrealEd

Header

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

Include

#include "MaterialGraph/MaterialGraphNode.h"

Syntax

class UMaterialGraphNode : public UMaterialGraphNode_Base

Variables

Name Description

Public variable

bool

 

bIsErrorExpression

Set to true if this expression causes an error in the material

Public variable

bool

 

bIsPreviewExpression

Set to true if this expression is currently being previewed

Public variable

bool

 

bPreviewNeedsUpdate

Set to true when Expression Preview compiles, so we can update SGraphNode

Public variable

FSimpleDelegate

 

InvalidatePreviewMaterialDelegate

Called when the preview material attached to this graph node needs to be updated

Public variable

FSetMaterialDir ...

 

MaterialDirtyDelegate

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

Public variable

UMaterialExpres ...

 

MaterialExpression

Material Expression this node is representing

Public variable

FRealtimeStateG ...

 

RealtimeDelegate

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

Constructors

Name Description

Public function

UMaterialGraphNode

(
    const FObjectInitializer & ObjectIn...
)

Functions

Name Description

Public function

FMaterialRen ...

 

GetExpressionPreview()

Get the expression preview for this node

Public function

int32

 

GetOutputIndex

(
    const UEdGraphPin * OutputPin
)

Get the Material Expression output index from an output pin

Public function

uint32

 

GetOutputType

(
    const UEdGraphPin * OutputPin
)

Get the Material value type of an output pin

Public function Static

FName

 

GetShortenPinName

(
    const FName PinName
)

Will return the shorten pin name to use based on long pin name

Public function

void

 

PostCopyNode()

Fix up the node's owner after being copied

Public function

void

 

RecreateAndLinkNode()

Recreate this node's pins and relink the Graph from the Material

Overridden from UMaterialGraphNode_Base

Name Description

Public function Virtual

void

 

CreateInputPins()

Create all of the input pins required

Public function Virtual

void

 

CreateOutputPins()

Create all of the output pins required

Public function Virtual Const

int32

 

GetInputIndex

(
    const UEdGraphPin * InputPin
)

Get the Material Expression input index from an input pin

Public function Virtual Const

uint32

 

GetInputType

(
    const UEdGraphPin * InputPin
)

Get the Material value type of an input pin

Overridden from UEdGraphNode

Name Description

Public function Virtual Const

bool

 

CanPasteHere

(
    const UEdGraph * TargetGraph
)

Determine if this node can live in the specified graph

Public function Virtual Const

bool

 

CanUserDeleteNode()

Whether or not this node can be deleted by user action

Public function Virtual Const

FString

 

GetDocumentationExcerptName()

Returns the name of the excerpt to display from the specified external documentation link for the graph node Default behavior is to return the class name (including prefix)

Public function Virtual Const

void

 

GetNodeContextMenuActions

(
    UToolMenu * Menu,
    UGraphNodeContextMenuContext * ...
)

Gets a list of actions that can be done to this particular node

Public function Virtual Const

FText

 

GetNodeTitle

(
    ENodeTitleType::Type TitleType
)

Gets the name of this node, shown in title bar

Public function Virtual Const

FLinearColor

 

GetNodeTitleColor()

Gets the draw color of a node's title bar

Public function Virtual Const

void

 

GetPinHoverText

(
    const UEdGraphPin & Pin,
    FString & HoverTextOut
)

Fetch the hover text for a pin when the graph is being edited.

Public function Virtual Const

FText

 

GetTooltipText()

Gets the tooltip to display when over the node

Public function Virtual

void

 

NodeConnectionListChanged()

Called when something external to this node has changed the connection list of any of the pins in the node

Public function Virtual

void

 

OnCommentBubbleToggled

(
    bool bInCommentBubbleVisible
)

Called when the node's comment bubble is toggled

Public function Virtual

void

 

OnRenameNode

(
    const FString & NewName
)

Called when this node is being renamed after a successful name validation

Public function Virtual

void

 

OnUpdateCommentText

(
    const FString & NewComment
)

Called to replace this nodes comment text

Public function Virtual

void

 

PostPlacedNewNode()

A chance to initialize a new node; called just once when a new node is created, before AutowireNewNode or AllocateDefaultPins is called.

Public function Virtual

void

 

PrepareForCopying()

Perform any steps necessary prior to copying a node into the paste buffer

Overridden from UObject

Name Description

Public function Virtual

void

 

PostDuplicate

(
    bool bDuplicateForPIE
)

Called after duplication & serialization and before PostLoad.

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent & PropertyCha...
)

Called when a property on this object has been modified externally

Public function Virtual

void

 

PostEditImport()

Called after importing property values for this object (paste, duplicate or .t3d import) Allow the object to perform any cleanup for properties which shouldn't be duplicated or are unsupported by the script serialization

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