FArchiveReplaceObjectRef

Archive for replacing a reference to an object.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

CoreUObject

Header

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

Include

#include "Serialization/ArchiveReplaceObjectRef.h"

Syntax

template<class T>
class FArchiveReplaceObjectRef : public FArchiveReplaceObjectRefBase

Remarks

Archive for replacing a reference to an object. This classes uses serialization to replace all references to one object with another.

that this archive will only traverse objects with an Outer that matches InSearchObject.

The template type must be a child of UObject or this class will not compile.

Variables

Name Description

Protected variable

const TMap< T &...

 

ReplacementMap

Map of objects to find references to -> object to replace references with

Constructors

Name Description

Public function

FArchiveReplaceObjectRef

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

Initializes variables and starts the serialization search

Public function

FArchiveReplaceObjectRef

(
    UObject* InSearchObject,
    const TMap< T*, T* >& in...,
    bool bNullPrivateRefs,
    bool bIgnoreOuterRef,
    bool bIgnoreArchetypeRef,
    bool bDelayStart,
    bool bIgnoreClassGeneratedByRef
)

Use version that supplies flags via enum.

Functions

Name Description

Public function

void

 

SerializeSearchObject()

Starts the serialization of the root object

Operators

Name Description

Public function Virtual

FArchive &

 

operator<<

(
    UObject*& Obj
)

Serializes the reference to the object

Public function Virtual

FArchive &

 

operator<<

(
    FObjectPtr& Obj
)

Serializes a resolved or unresolved object reference

Public function Virtual

FArchive &

 

operator<<

(
    FSoftObjectPath& Value
)

Serializes soft object paths from or into this archive.

Deprecated Functions

Name Description

Public function

 

FArchiveReplaceObjectRef

(
    UObject* InSearchObject,
    const TMap< T*, T* >& in...,
    bool bNullPrivateRefs,
    bool bIgnoreOuterRef,
    bool bIgnoreArchetypeRef,
    bool bDelayStart,
    bool bIgnoreClassGeneratedByRef
)

Use version that supplies flags via enum.