UContentBrowserClassDataSource::Legacy_TryGetPackagePath

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

Windows
MacOS
Linux

Override Hierarchy

UContentBrowserDataSource::Legacy_TryGetPackagePath()

UContentBrowserClassDataSource::Legacy_TryGetPackagePath()

References

Module

ContentBrowserClassDataSource

Header

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

Include

#include "ContentBrowserClassDataSource.h"

Source

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

Syntax

virtual bool Legacy_TryGetPackagePath
(
    const FContentBrowserItemData & InItem,
    FName & OutPackagePath
)

Remarks

Attempt to retrieve the package path associated with the given item. @note 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. @note Only items which historically represented package paths within the Content Browser should return data from this function (ie, assets and classes).

Returns

True if the package path was retrieved, false otherwise.

Parameters

Parameter

Description

InItem

The item to query.

InOutStr

The package 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