Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UAssetManager
Description
Downloads data for a set of assets in a specific bundle state, and returns a handle with a FStreamableDownloadCachePin. The FStreamableDownloadCachePin must be kept active to hold the data in the download cache. Does not load any assets.
| Name | PredownloadPrimaryAssets |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/AssetManager.h |
| Include Path | #include "Engine/AssetManager.h" |
| Source | /Engine/Source/Runtime/Engine/Private/AssetManager.cpp |
virtual TSharedPtr < FStreamableHandle > PredownloadPrimaryAssets
(
const TArray < FPrimaryAssetId > & AssetsToLoad,
const TArray < FName > & LoadBundles,
bool bLoadRecursive,
FAssetManagerLoadParams && LoadParams,
UE::FSourceLocation Location
)
Streamable Handle
Parameters
| Name | Remarks |
|---|---|
| AssetsToLoad | List of primary assets to load |
| LoadBundles | List of bundles to load for those assets |
| bLoadRecursive | If true, this will call RecursivelyExpandBundleData and recurse into sub bundles of other primary assets loaded by a bundle reference |
| LoadParams | Contains callbacks and download params. Download params are required. |
| Location | [optional] Is not intended for direct use, the parameter catches call site source location and passes it down to the streaming manager. See FStreamingManager. |