UContentBrowserDataSource::Legacy_TryGetAssetData

Attempt to retrieve the asset data associated with the given item.

Unreal Engine C++ API Reference > Editor > ContentBrowserData > UContentBrowserDataSource

  • UContentBrowserDataSource::Legacy_TryGetAssetData()

References

   
Module ContentBrowserData
Header /Engine/Source/Editor/ContentBrowserData/Public/ContentBrowserDataSource.h
Include #include "ContentBrowserDataSource.h"
Source /Engine/Source/Editor/ContentBrowserData/Private/ContentBrowserDataSource.cpp
virtual bool Legacy_TryGetAssetData
(
    const [FContentBrowserItemData](API\Editor\ContentBrowserData\FContentBrowserItemData) & InItem,
    [FAssetData](API\Runtime\CoreUObject\AssetRegistry\FAssetData) & OutAssetData
)

Remarks

Attempt to retrieve the asset data associated with the given item.

This exists to allow the Content Browser to interface with external callbacks that only operate on asset data and should ideally be avoided for new code.

Only items which historically represented asset data within the Content Browser should return data from this function (ie, assets and classes). True if the asset data was retrieved, false otherwise.

Parameters

Name Description
InItem The item to query.
InOutStr The asset data to fill.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library