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\AssetRegistry\FAssetData).

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

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