Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject > API/Runtime/CoreUObject/UObject/DuplicateObject
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
| Include | #include "UObject/UObjectGlobals.h" |
template<class T>
T * DuplicateObject
(
T const * SourceObject,
UObject * Outer,
const FName Name
)
Remarks
Convenience template for duplicating an object the copied object or null if it failed for some reason
Parameters
| Name | Description |
|---|---|
| SourceObject | the object being copied |
| Outer | the outer to use for the object |
| Name | the optional name of the object |