FArchiveReplaceObjectRef

Archive for replacing a reference to an object.

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...,
    bool bNullPrivateRefs,
    bool bIgnoreOuterRef,
    bool bIgnoreArchetypeRef,
    bool bDelayStart,
    bool bIgnoreClassGeneratedByRef
)

Initializes variables and starts the serialization search

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss