RealDocs

UAssetManager::GetResourceAcquireProgress

function Engine Since unknown
#include "Engine/AssetManager.h"
Access: public Specifiers: virtualconst

Description

Reports chunk download/install progress across all outstanding AcquireResources requests, giving a simple acquired-out-of-requested count.

Caveats & Gotchas

  • Reflects the aggregate of every in-flight acquire request, not a specific one you may be tracking — if multiple systems are acquiring chunks concurrently, you can't isolate one request's progress from this alone.
  • Useful for a coarse loading-screen progress bar, but the counts are chunks, not bytes, so progress isn't necessarily linear with download time.

Signature

virtual bool GetResourceAcquireProgress(int32& OutAcquiredCount, int32& OutRequestedCount) const;

Parameters

Name Type Description Default
OutAcquiredCount int32& Number of requested chunks that have already been installed.
OutRequestedCount int32& Total number of chunks requested, including both installed and pending.

Return Type

bool

Example

Drive a loading screen progress bar C++
UAssetManager& Manager = UAssetManager::Get();
int32 Acquired = 0, Requested = 0;
if (Manager.GetResourceAcquireProgress(Acquired, Requested) && Requested > 0)
{
	const float PercentComplete = static_cast<float>(Acquired) / Requested;
}

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.