UAssetManager::AcquireResourcesForPrimaryAssetList

Acquires a set of chunks using the platform chunk layer, then calls the passed in callback.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/AssetManager.h

Include

#include "Engine/AssetManager.h"

Source

/Engine/Source/Runtime/Engine/Private/AssetManager.cpp

Syntax

virtual void AcquireResourcesForPrimaryAssetList
(
    const TArray< FPrimaryAssetId > & PrimaryAssetList,
    FAssetManagerAcquireResourceDelegate CompleteDelegate,
    EChunkPriority::Type Priority
)

Remarks

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

Parameters

Parameter

Description

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