Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UAssetManager
Description
Acquires a set of chunks using the platform chunk layer, then calls the passed in callback. This will download all bundles of a primary asset
| Name | AcquireResourcesForPrimaryAssetList |
| 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 void AcquireResourcesForPrimaryAssetList
(
const TArray < FPrimaryAssetId > & PrimaryAssetList,
FAssetManagerAcquireResourceDelegate CompleteDelegate,
EChunkPriority::Type Priority
)
Parameters
| Name | Remarks |
|---|---|
| PrimaryAssetList | Primary assets to get chunks for |
| CompleteDelegate | Delegate called when chunks have been acquired or failed. If any chunks fail the entire operation is considered a failure |
| Priority | Priority to use when acquiring chunks |