FArchiveReplaceOrClearExternalReferences

Identical to [FArchiveReplaceObjectRef](API\Runtime\CoreUObject\Serialization\FArchiveReplaceObjectRef), but for references to private objects in other packages we clear the reference instead of preserving it (unless it makes it into the replacement map)

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

CoreUObject

Header

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

Include

#include "Serialization/ArchiveReplaceOrClearExternalReferences.h"

Syntax

template<class T>
class FArchiveReplaceOrClearExternalReferences : public FArchiveReplaceObjectRef< T >

Remarks

Identical to FArchiveReplaceObjectRef, but for references to private objects in other packages we clear the reference instead of preserving it (unless it makes it into the replacement map)

Variables

Name Description

Protected variable

UPackage *

 

DestPackage

Package that we are loading into, references to private objects in other packages will be cleared

Constructors

Name Description

Public function

FArchiveReplaceOrClearExternalReferences

(
    UObject* InSearchObject,
    const TMap< T*, T* >& In...,
    UPackage* InDestPackage,
    EArchiveReplaceObjectFlags Flags
)

Public function

FArchiveReplaceOrClearExternalReferences

(
    UObject* InSearchObject,
    const TMap< T*, T* >& In...,
    UPackage* InDestPackage,
    bool bDelayStart
)

Use version that passes Flags instead of just bDelayStart

Operators

Name Description

Public function Virtual

FArchive &

 

operator<<

(
    UObject*& Obj
)

Serializes the reference to the object

Typedefs

Name

Description

TSuper

Deprecated Functions

Name Description

Public function

 

FArchiveReplaceOrClearExternalReferences

(
    UObject* InSearchObject,
    const TMap< T*, T* >& In...,
    UPackage* InDestPackage,
    bool bDelayStart
)

Use version that passes Flags instead of just bDelayStart