IAssetRegistry::SetPrimaryAssetIdForObjectPath

Sets the PrimaryAssetId for a specific asset.

Windows
MacOS
Linux

References

Module

AssetRegistry

Header

/Engine/Source/Runtime/AssetRegistry/Public/AssetRegistry/IAssetRegistry.h

Include

#include "AssetRegistry/IAssetRegistry.h"

Syntax

bool SetPrimaryAssetIdForObjectPath
(
    const FName ObjectPath,
    FPrimaryAssetId PrimaryAssetId
)

Remarks

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

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