UAssetManager::AddDynamicAsset

Adds or updates a Dynamic asset, which is a runtime-specified asset that has no on disk representation, so has no [FAssetData](API\Runtime\CoreUObject\AssetRegistry\FAssetData).

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 bool AddDynamicAsset
(
    const FPrimaryAssetId & PrimaryAssetId,
    const FSoftObjectPath & AssetPath,
    const FAssetBundleData & BundleData
)

Remarks

Adds or updates a Dynamic asset, which is a runtime-specified asset that has no on disk representation, so has no FAssetData. But it can have bundle state and a path.

Returns

True if added

Parameters

Parameter

Description

FPrimaryAssetId

Type/Name of the asset. The type info will be created if it doesn't already exist

AssetPath

Path to the object representing this asset, this is optional for dynamic assets

BundleData

List of Name->asset paths that represent the possible bundle states for this asset