UAssetManager::GetPrimaryAssetHandle

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

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

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