UContentBrowserDataSource::Legacy_TryGetPackagePath

Attempt to retrieve the package path associated with the given item.

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

  • UContentBrowserDataSource::Legacy_TryGetPackagePath()

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_TryGetPackagePath
(
    const [FContentBrowserItemData](API\Editor\ContentBrowserData\FContentBrowserItemData) & InItem,
    [FName](API\Runtime\Core\UObject\FName) & OutPackagePath
)

Remarks

Attempt to retrieve the package path associated with the given item.

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

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

Parameters

Name Description
InItem The item to query.
InOutStr The package path to fill.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library