ProcessAsyncLoadingUntilComplete

Blocks and runs ProcessAsyncLoading until the time limit is hit, the completion predicate returns true, or all async loading is done

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

EAsyncPackageState::Type ProcessAsyncLoadingUntilComplete
(
    TFunctionRef< bool()> CompletionPredicate,
    float TimeLimit
)

Remarks

Blocks and runs ProcessAsyncLoading until the time limit is hit, the completion predicate returns true, or all async loading is done

Returns

The minimum state of any of the queued packages.

Parameters

Parameter

Description

CompletionPredicate

If this returns true, stop loading. This is called periodically as long as loading continues

TimeLimit

Hard time limit. 0 means infinite length

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