IAssetRegistry::GetAssetByObjectPath

Gets the asset data for the specified object path

Windows
MacOS
Linux

References

Module

AssetRegistry

Header

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

Include

#include "AssetRegistry/IAssetRegistry.h"

Syntax

FAssetData GetAssetByObjectPath
(
    const FName ObjectPath,
    bool bIncludeOnlyOnDiskAssets
) const

Remarks

Gets the asset data for the specified object path

Returns

the assets data;Will be invalid if object could not be found

Parameters

Parameter

Description

ObjectPath

the path of the object to be looked up

bIncludeOnlyOnDiskAssets

if true, in-memory objects will be ignored. The call will be faster.

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