FDuplicateDataWriter::GetDuplicatedObject

Returns a pointer to the duplicate of a given object, creating the duplicate object if necessary.

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/Serialization/DuplicatedDataWriter.h

Include

#include "Serialization/DuplicatedDataWriter.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/Serialization/DuplicateDataWriter.cpp

Syntax

UObject * GetDuplicatedObject
(
    UObject * Object,
    bool bCreateIfMissing
)

Remarks

Returns a pointer to the duplicate of a given object, creating the duplicate object if necessary.

Returns a pointer to the duplicate of a given object, creating the duplicate object if necessary.

Returns

a pointer to the duplicate of the specified object

Parameters

Parameter

Description

Object

the object to find a duplicate for

bCreateIfMissing

Create the duplicated object if it's missing.

Object

the object to find a duplicate for