FEdGraphUtilities::CloneAndMergeGraphIn

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

Choose your operating system:

Windows

macOS

Linux

References

Module

UnrealEd

Header

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

Include

#include "EdGraphUtilities.h"

Source

/Engine/Source/Editor/UnrealEd/Private/EdGraphUtilities.cpp

Syntax

static void CloneAndMergeGraphIn
(
    UEdGraph * MergeTarget,
    UEdGraph * SourceGraph,
    FCompilerResultsLog & MessageLog,
    bool bRequireSchemaMatch,
    bool bInIsCompiling,
    TArray< UEdGraphNode * > * OutClonedNodes
)

Remarks

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

Also optionally populates *OutClonedNodes with the list of cloned objects.

Parameters

Parameter

Description

MergeTarget

The graph to merge the source graph into

SourceGraph

Graph to merge from

MessageLog

MessageLog to report errors and warnings to

bRequireSchemaMatch

TRUE if the graphs must have the same schema for the merge to occur

OutClonedNodes

Will populate with a full list of cloned nodes if provided

bInIsCompiling

TRUE if the function is being called during compilation, this will eliminate some nodes that will not be compiled