UContentBrowserAssetDataSource::Legacy_TryConvertAssetDataToVirtualPath

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

Windows
MacOS
Linux

Override Hierarchy

UContentBrowserDataSource::Legacy_TryConvertAssetDataToVirtualPath()

UContentBrowserAssetDataSource::Legacy_TryConvertAssetDataToVirtualPath()

References

Module

ContentBrowserAssetDataSource

Header

/Engine/Plugins/Editor/ContentBrowser/ContentBrowserAssetDataSource/Source/ContentBrowserAssetDataSource/Public/ContentBrowserAssetDataSource.h

Include

#include "ContentBrowserAssetDataSource.h"

Source

/Engine/Plugins/Editor/ContentBrowser/ContentBrowserAssetDataSource/Source/ContentBrowserAssetDataSource/Private/ContentBrowserAssetDataSource.cpp

Syntax

virtual bool Legacy_TryConvertAssetDataToVirtualPath
(
    const FAssetData & InAssetData,
    const bool InUseFolderPaths,
    FName & OutPath
)

Remarks

Attempt to convert the given asset data to a virtual path associated with this data source. @note 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. @note 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.

Returns

True if the asset data was mapped, false otherwise.

Parameters

Parameter

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.

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