UMaterialGraphSchema

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

UnrealEd

Header

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

Include

#include "MaterialGraph/MaterialGraphSchema.h"

Syntax

class UMaterialGraphSchema : public UEdGraphSchema

Constructors

Name Description

Public function

UMaterialGraphSchema

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Const

bool

 

ArePinsCompatible_Internal

(
    const UEdGraphPin* InputPin,
    const UEdGraphPin* OutputPin,
    FText& ResponseMessage
)

Check whether the types of pins are compatible

Public function Const

bool

 

ConnectionCausesLoop

(
    const UEdGraphPin* InputPin,
    const UEdGraphPin* OutputPin
)

Check whether connecting these pins would cause a loop

Public function Const

void

 

GetBreakLinkToSubMenuActions

(
    UToolMenu* Menu,
    UEdGraphPin* InGraphPin
)

Get menu for breaking links to specific nodes

Public function Static

uint32

 

GetMaterialValueType

(
    const UEdGraphPin* MaterialPin
)

Gets the type of this pin (must be part of a UMaterialGraphNode_Base)

Public function Const

void

 

GetPaletteActions

(
    FGraphActionMenuBuilder& ActionMen...,
    const FString& CategoryName,
    bool bMaterialFunction
)

Public function

void

 

OnConnectToFunctionOutput

(
    UEdGraphPin* InGraphPin,
    UEdGraphPin* InFuncPin
)

Connect a pin to one of the Material Function's outputs

Public function

void

 

OnConnectToMaterial

(
    UEdGraphPin* InGraphPin,
    int32 ConnIndex
)

Connect a pin to one of the Material's inputs

Public function

void

 

SelectAllInputNodes

(
    UEdGraph* Graph,
    UEdGraphPin* InGraphPin
)

Add all linked to nodes to this pin to selection

Overridden from UEdGraphSchema

Name Description

Public function Virtual Const

void

 

BreakNodeLinks

(
    UEdGraphNode& TargetNode
)

Breaks all links from/to a single node

Public function Virtual Const

void

 

BreakPinLinks

(
    UEdGraphPin& TargetPin,
    bool bSendsNodeNotifcation
)

Breaks all links from/to a single pin

Public function Virtual Const

void

 

BreakSinglePinLink

(
    UEdGraphPin* SourcePin,
    UEdGraphPin* TargetPin
)

Breaks the link between two nodes.

Public function Virtual Const

const FPinCo...

 

CanCreateConnection

(
    const UEdGraphPin* A,
    const UEdGraphPin* B
)

Determine if a connection can be created between two pins.

Public function Virtual Const

void

 

DroppedAssetsOnGraph

(
    const TArray< struct FAssetData >&...,
    const FVector2D& GraphPosition,
    UEdGraph* Graph
)

Called when asset(s) are dropped onto a graph background.

Public function Virtual Const

void

 

ForceVisualizationCacheClear()

Forces cached visualization data to refresh

Public function Virtual Const

void

 

GetAssetsGraphHoverMessage

(
    const TArray< FAssetData >& Assets,
    const UEdGraph* HoverGraph,
    FString& OutTooltipText,
    bool& OutOkIcon
)

Allows schema to generate a tooltip (icon & message) when the specified asset(s) are dragged over the specified graph

Public function Virtual Const

void

 

GetContextMenuActions

(
    UToolMenu* Menu,
    UGraphNodeContextMenuContext* ...
)

Gets actions that should be added to the right-click context menu for a node or pin

Public function Virtual Const

TSharedPtr< ...

 

GetCreateCommentAction()

Returns schema action to create comment from implemention

Public function Virtual Const

int32

 

GetCurrentVisualizationCacheID()

Returns the current cache title refresh ID that is appropriate for the passed node

Public function Virtual Const

void

 

GetGraphContextActions

(
    FGraphContextMenuBuilder& ContextM...
)

Get all actions that can be performed when right clicking on a graph or drag-releasing on a graph from a pin

Public function Virtual Const

int32

 

GetNodeSelectionCount

(
    const UEdGraph* Graph
)

Returns the currently selected graph node count

Public function Virtual Const

FLinearColor

 

GetPinTypeColor

(
    const FEdGraphPinType& PinType
)

Gets the draw color of a pin based on it's type.

Public function Virtual Const

bool

 

IsCacheVisualizationOutOfDate

(
    int32 InVisualizationCacheID
)

Checks if a CacheRefreshID is out of date

Public function Virtual Const

void

 

OnPinConnectionDoubleCicked

(
    UEdGraphPin* PinA,
    UEdGraphPin* PinB,
    const FVector2D& GraphPosition
)

Handles double-clicking on a pin<->pin connection

Public function Virtual Const

bool

 

SafeDeleteNodeFromGraph

(
    UEdGraph* Graph,
    UEdGraphNode* Node
)

Perform any logic necessary to safely remove this node from the graph.

Public function Virtual Const

bool

 

ShouldHidePinDefaultValue

(
    UEdGraphPin* Pin
)

If we should disallow viewing and editing of the supplied pin

Public function Virtual Const

bool

 

TryCreateConnection

(
    UEdGraphPin* A,
    UEdGraphPin* B
)

Try to make a connection between two pins.

Constants

Name

Description

ActivePinColor

Color of certain pins/connections.

AlphaPinColor

CurrentCacheRefreshID

ID for checking dirty status of node titles against, increases whenever.

InactivePinColor

PC_Mask

Allowable PinType.PinCategory values.

PC_MaterialInput

PC_Optional

PC_Required

PSC_Alpha

PSC_Blue

PSC_Green

PSC_Red

Common PinType.PinSubCategory values.

PSC_RGBA

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