UAssetManager::GetPrimaryAssetHandle

Returns the loading handle associated with the primary asset, it can then be checked for progress or waited on

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

TSharedPtr< FStreamableHandle > GetPrimaryAssetHandle
(
    const FPrimaryAssetId & PrimaryAssetId,
    bool bForceCurrent,
    TArray< FName > * Bundles
) const

Remarks

Returns the loading handle associated with the primary asset, it can then be checked for progress or waited on

Returns

Streamable Handle that can be used to poll or wait

Parameters

Parameter

Description

PrimaryAssetId

Asset to get handle for

bForceCurrent

If true, returns the current handle. If false, will return pending if active, or current if not

Bundles

If not null, will fill in with a list of the requested bundle state

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss