DuplicateObject

Convenience template for duplicating an object

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/UObjectGlobals.h"

Syntax

template<class T>
T * DuplicateObject
(
    T const * SourceObject,
    UObject * Outer,
    const FName Name
)

Remarks

Convenience template for duplicating an object

Returns

the copied object or null if it failed for some reason

Parameters

Parameter

Description

SourceObject

the object being copied

Outer

the outer to use for the object

Name

the optional name of the 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