FStreamableManager::LoadSynchronous

Synchronously load the referred asset and return the loaded object, or nullptr if it can't be found.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/StreamableManager.h

Include

#include "Engine/StreamableManager.h"

Source

/Engine/Source/Runtime/Engine/Private/StreamableManager.cpp

Syntax

UObject * LoadSynchronous
(
    const FSoftObjectPath & Target,
    bool bManageActiveHandle,
    TSharedPtr< FStreamableHandle > * RequestHandlePointer
)

Remarks

Synchronously load the referred asset and return the loaded object, or nullptr if it can't be found. This can be very slow and may stall the game thread for several seconds.

Parameters

Parameter

Description

Target

Specific asset to load off disk

bManageActiveHandle

If true, the manager will keep the streamable handle active until explicitly released

RequestHandlePointer

If non-null, this will set the handle to the handle used to make this request. This useful for later releasing the handle

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