Navigation
API > API/Runtime > API/Runtime/AssetRegistry > API/Runtime/AssetRegistry/IAssetRegistry
Description
Sets the PrimaryAssetId for a specific asset. This should only be called by the AssetManager, and is needed when the AssetManager is more up to date than the on disk Registry.
| Name | SetPrimaryAssetIdForObjectPath |
| Type | function |
| Header File | /Engine/Source/Runtime/AssetRegistry/Public/AssetRegistry/IAssetRegistry.h |
| Include Path | #include "AssetRegistry/IAssetRegistry.h" |
bool SetPrimaryAssetIdForObjectPath
(
const FSoftObjectPath & ObjectPath,
FPrimaryAssetId PrimaryAssetId
)