FEdGraphUtilities

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/EdGraphUtilities.h

Include

#include "EdGraphUtilities.h"

Syntax

class FEdGraphUtilities

Constructors

No constructors are accessible with public or protected access.

Functions

Name Description

Public function Static

FIntRect

 

CalculateApproximateNodeBoundaries

(
    const TArray< UEdGraphNode* > ...
)

Calculates an approximate bounding box for the specified nodes.

Public function Static

bool

 

CanImportNodesFromText

(
    const UEdGraph* DestinationGra...,
    const FString& TextToImport
)

Can we import nodes from this text ?

Public function Static

void

 

CloneAndMergeGraphIn

(
    UEdGraph* MergeTarget,
    UEdGraph* SourceGraph,
    FCompilerResultsLog& MessageLog,
    bool bRequireSchemaMatch,
    bool bInIsCompiling,
    TArray< UEdGraphNode* >* ...
)

Clones the content from SourceGraph and merges it into MergeTarget; including merging/flattening all of the children from the SourceGraph into MergeTarget

Public function Static

UEdGraph ...

 

CloneGraph

(
    UEdGraph* Source,
    UObject* NewOuter,
    FCompilerResultsLog* MessageLo...,
    bool bCloningForCompile
)

Clones (deep copies) a UEdGraph, including all of it's nodes and pins and their links, maintaining a mapping from the clone to the source nodes (even across multiple clonings) A NewOuter of NULL indicates the transient package

Public function Static

void

 

CopyCommonState

(
    UEdGraphNode* OldNode,
    UEdGraphNode* NewNode
)

Copy Common State of data from OldNode to NewNode

Public function Static

void

 

CopyPinDefaults

(
    const UEdGraphNode* NodeFrom,
    UEdGraphNode* NodeTo
)

Copy pin default values between nodes for any pins with matching names

Public function Static

void

 

ExportNodesToText

(
    TSet< UObject* > NodesToExport,
    FString& ExportedText
)

Exports a set of nodes to text

Public function Static

UEdGraphPin ...

 

FindArrayParamPin

(
    const UFunction* Function,
    const UEdGraphNode* Node
)

Returns the first pin marked as an ArrayParam, usually returning nullptr

Public function Static

UEdGraphPin ...

 

FindMapParamPin

(
    const UFunction* Function,
    const UEdGraphNode* Node
)

Returns the first pin marked as an MapParam, usually returning nullptr

Public function Static

UEdGraphPin ...

 

FindPinFromMetaData

(
    const UFunction* Function,
    const UEdGraphNode* Node,
    FName MetaData
)

Returns the first pin referred to in a , and | delineated list of pin names

Public function Static

UEdGraphPin ...

 

FindSetParamPin

(
    const UFunction* Function,
    const UEdGraphNode* Node
)

Returns the first pin marked as an SetParam, usually returning nullptr

Public function Static

UEdGraphPin ...

 

GetNetFromPin

(
    UEdGraphPin* Pin
)

Finds the net associated with a particular pin

Public function Static

void

 

GetPinConnectionMap

(
    const UEdGraphNode* Node,
    TMap< FString, TSet< UEdGraphPin&#...
)

Output a map of pin names to a set of connections given a function entry pin

Public function Static

void

 

ImportNodesFromText

(
    UEdGraph* DestinationGraph,
    const FString& TextToImport,
    TSet< UEdGraphNode* >& Import...
)

Imports a set of previously exported nodes into a graph

Public function Static

bool

 

IsArrayDependentParam

(
    const UFunction* Function,
    const FName ParameterName
)

Returns true if the ParameterName is marked as ArrayTypeDependentParams

Public function Static

bool

 

IsDynamicContainerParam

(
    const UFunction* Function,
    const FName ParameterName
)

Returns true if the ParamaterName is marked as a Set, Map, or array param in the relevant function

Public function Static

bool

 

IsMapParam

(
    const UFunction* Function,
    const FName ParameterName
)

Returns true if the ParameterName is marked as a MapParam, MapKeyParam, or MapValueParam in the relevant Function

Public function Static

bool

 

IsSetParam

(
    const UFunction* Function,
    const FName ParameterName
)

Returns true if the ParameterName is marked as a SetParam in the relevant Function

Public function Static

void

 

MergeChildrenGraphsIn

(
    UEdGraph* MergeTarget,
    UEdGraph* ParentGraph,
    bool bRequireSchemaMatch,
    bool bInIsCompiling,
    FCompilerResultsLog* MessageLo...
)

Moves the contents of all of the children graphs of ParentGraph (recursively) into the MergeTarget graph.

Public function Static

void

 

PostProcessPastedNodes

(
    TSet< class UEdGraphNode* >& ...
)

After pasting nodes, need to perform some fixup for pins etc.

Public function Static

void

 

ReconnectPinMap

(
    UEdGraphNode* Node,
    const TMap< FString, TSet< UEdGraph...
)

Reconnect the pin map to the given node

Public function Static

void

 

RegisterVisualNodeFactory

Public function Static

void

 

RegisterVisualPinConnectionFactory

Public function Static

void

 

RegisterVisualPinFactory

Public function Static

void

 

RenameGraphCloseToName

(
    UEdGraph* Graph,
    const FString& BaseName,
    int32 StartIndex
)

Tries to rename the graph to have a name similar to BaseName

Public function Static

void

 

RenameGraphToNameOrCloseToName

(
    UEdGraph* Graph,
    const FString& DesiredName
)

Public function Static

void

 

UnregisterVisualNodeFactory

Public function Static

void

 

UnregisterVisualPinConnectionFactory

Public function Static

void

 

UnregisterVisualPinFactory

Classes

Name

Description

Public struct

FNodeVisitor

Constants

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