StaticDuplicateObjectEx

Creates a copy of SourceObject using the Outer and Name specified, as well as copies of all objects contained by SourceObject.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h

Include

#include "UObject/UObjectGlobals.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectGlobals.cpp

Syntax

UObject * StaticDuplicateObjectEx
(
    struct FObjectDuplicationParameters & Parameters
)

Remarks

Creates a copy of SourceObject using the Outer and Name specified, as well as copies of all objects contained by SourceObject. Any objects referenced by SourceOuter or RootObject and contained by SourceOuter are also copied, maintaining their name relative to SourceOuter. Any references to objects that are duplicated are automatically replaced with the copy of the object.

Returns

The duplicate of SourceObject.

Parameters

Parameter

Description

Parameters

Specific options to use when duplicating this object

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