FEdGraphUtilities::CloneGraph

Clones (deep copies) a [UEdGraph](API\Runtime\Engine\EdGraph\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

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 UEdGraph * CloneGraph
(
    UEdGraph * Source,
    UObject * NewOuter,
    FCompilerResultsLog * MessageLog,
    bool bCloningForCompile
)

Remarks

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