UMetasoundEditorGraphSchema

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

MetasoundEditor

Header

/Engine/Plugins/Runtime/Metasound/Source/MetasoundEditor/Public/MetasoundEditorGraphSchema.h

Include

#include "MetasoundEditorGraphSchema.h"

Syntax

UCLASS(MinimalAPI)
class UMetasoundEditorGraphSchema : public UEdGraphSchema

Constructors

Name Description

Public function

UMetasoundEditorGraphSchema

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Const

void

 

BreakNodeLinks

(
    UEdGraphNode& TargetNode,
    bool bShouldActuallyTransact
)

Public function Const

bool

 

ConnectionCausesLoop

(
    const UEdGraphPin* InputPin,
    const UEdGraphPin* OutputPin
)

Check whether connecting these pins would cause a loop

Public function Const

void

 

GetPaletteActions

(
    FGraphActionMenuBuilder& ActionMen...
)

Helper method to add items valid to the palette list

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

const FPinCo...

 

CanCreateConnection

(
    const UEdGraphPin* A,
    const UEdGraphPin* B
)

Determine if a connection can be created between two pins.

Public function Virtual Const

void

 

CreateDefaultNodesForGraph

(
    UEdGraph& Graph
)

Populate new graph with any default nodes

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

 

DroppedAssetsOnNode

(
    const TArray< FAssetData >& Assets,
    const FVector2D& GraphPosition,
    UEdGraphNode* Node
)

Called when asset(s) are dropped onto the specified node

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

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

FText

 

GetPinDisplayName

(
    const UEdGraphPin* Pin
)

Get the name to show in the editor

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

 

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.

Public function Virtual Const

void

 

TrySetDefaultObject

(
    UEdGraphPin& Pin,
    UObject* NewDefaultObject,
    bool bMarkAsModified
)

Sets the object to the specified pin

Public function Virtual Const

void

 

TrySetDefaultValue

(
    UEdGraphPin& Pin,
    const FString& NewDefaultValue,
    bool bMarkAsModified
)

Sets the string to the specified pin; even if it is invalid it is still set.