Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Engine/StreamableManager.h |
Include |
#include "Engine/StreamableManager.h" |
Source |
/Engine/Source/Runtime/Engine/Private/StreamableManager.cpp |
TSharedPtr< FStreamableHandle > RequestAsyncLoad
(
TArray< FSoftObjectPath > TargetsToStream,
FStreamableDelegate DelegateToCall,
TAsyncLoadPriority Priority,
bool bManageActiveHandle,
bool bStartStalled,
FString DebugName
)
This is the primary streamable operation. Requests streaming of one or more target objects. When complete, a delegate function is called. Returns a Streamable Handle.
Parameter |
Description |
---|---|
TargetsToStream |
Assets to load off disk |
DelegateToCall |
Delegate to call when load finishes. Will be called on the next tick if asset is already loaded, or many seconds later |
Priority |
Priority to pass to the streaming system, higher priority will be loaded first |
bManageActiveHandle |
If true, the manager will keep the streamable handle active until explicitly released |
bStartStalled |
If true, the handle will start in a stalled state and will not attempt to actually async load until StartStalledHandle is called on it |
DebugName |
Name of this handle, will be reported in debug tools |