FLinkerLoad::Preload

Serialize the object data for the specified object from the unreal package file.

Windows
MacOS
Linux

Override Hierarchy

FArchive::Preload()

FLinkerLoad::Preload()

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/LinkerLoad.h

Include

#include "UObject/LinkerLoad.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/LinkerLoad.cpp

Syntax

virtual void Preload
(
    UObject * Object
)

Remarks

Serialize the object data for the specified object from the unreal package file. Loads any additional resources required for the object to be in a valid state to receive the loaded data, such as the object's Outer, Class, or ObjectArchetype.

When this function exits, Object is guaranteed to contain the data stored that was stored on disk.

Parameters

Parameter

Description

Object

The object to load data for. If the data for this object isn't stored in this FLinkerLoad, routes the call to the appropriate linker. Data serialization is skipped if the object has already been loaded (as indicated by the RF_NeedLoad flag not set for the object), so safe to call on objects that have already been loaded. Note that this function assumes that Object has already been initialized against its template object. If Object is a UClass and the class default object has already been created, calls Preload for the class default object as well.

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