Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UAssetManager
Description
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.
| Name | AddDynamicAsset |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/AssetManager.h |
| Include Path | #include "Engine/AssetManager.h" |
| Source | /Engine/Source/Runtime/Engine/Private/AssetManager.cpp |
virtual bool AddDynamicAsset
(
const FPrimaryAssetId & PrimaryAssetId,
const FSoftObjectPath & AssetPath,
const FAssetBundleData & BundleData
)
True if added
Parameters
| Name | Remarks |
|---|---|
| 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 |