LoadPackageAsync

Asynchronously load a package and all contained objects that match context flags. Non-blocking.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/UObjectGlobals.h"

Source

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

Syntax

int32 LoadPackageAsync
(
    const FString & InName,
    FLoadPackageAsyncDelegate InCompletionDelegate,
    TAsyncLoadPriority InPackagePriority,
    EPackageFlags InPackageFlags,
    int32 InPIEInstanceID
)

Remarks

Asynchronously load a package and all contained objects that match context flags. Non-blocking.

Returns

Unique ID associated with this load request (the same package can be associated with multiple IDs).

Parameters

Parameter

Description

InName

Name of package to load

InCompletionDelegate

Delegate to be invoked when the packages has finished streaming

InPackagePriority

Loading priority

InPackageFlags

Package flags used to construct loaded package in memory

InPIEInstanceID

Play in Editor instance ID

See Also

FStreamableManager for an engine-level wrapper

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