Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FEdGraphUtilities
Description
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.
| Name | CloneAndMergeGraphIn |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/EdGraphUtilities.h |
| Include Path | #include "EdGraphUtilities.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/EdGraphUtilities.cpp |
static void CloneAndMergeGraphIn
(
UEdGraph * MergeTarget,
UEdGraph * SourceGraph,
FCompilerResultsLog & MessageLog,
bool bRequireSchemaMatch,
bool bInIsCompiling,
TArray < UEdGraphNode * > * OutClonedNodes
)
Parameters
| Name | Remarks |
|---|---|
| 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 |