UContentBrowserDataSource::Legacy_TryConvertAssetDataToVirtualPath

Attempt to convert the given asset data to a virtual path associated with this data source.

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

  • UContentBrowserDataSource::Legacy_TryConvertAssetDataToVirtualPath()

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_TryConvertAssetDataToVirtualPath
(
    const [FAssetData](API\Runtime\CoreUObject\AssetRegistry\FAssetData) & InAssetData,
    const bool InUseFolderPaths,
    [FName](API\Runtime\Core\UObject\FName) & OutPath
)

Remarks

Attempt to convert the given asset data to a virtual path associated with this data source.

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

This function only adjusts the path to something that could represent a virtualized item within this data source, but it doesn't guarantee that an item actually exists at that path. True if the asset data was mapped, false otherwise.

Parameters

Name Description
InAssetData The asset data to query.
InUseFolderPaths True if this conversion is for the paths view (so should use the parent folder of an asset), or false if it is for the asset view.
OutPath The virtualized path to fill.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library