Navigation
API > API/Editor > API/Editor/ContentBrowserData
References
| Module | ContentBrowserData |
| Header | /Engine/Source/Editor/ContentBrowserData/Public/ContentBrowserVirtualPathTree.h |
| Include | #include "ContentBrowserVirtualPathTree.h" |
Syntax
class FContentBrowserVirtualPathTree
Remarks
Tree of virtual paths ending where internal paths start. Used for conversion of paths and during enumerate.
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CachePath
(
FName Path, |
Adds the specified path to the tree, creating nodes as needed and calling OnPathAdded for any new paths added. | |
| void | EnumerateAllPaths
(
TFunctionRef< bool(FName)> Callback |
Enumerate all of the paths we know about | |
| bool | EnumerateSubPaths
(
FName BasePath, |
Recursively enumerates all child paths from the specified base path relative to this node | |
| SIZE_T | |||
| bool | GetAllPaths
(
TSet< FName >& OutPaths |
Get all of the paths we know about | |
| FStringView | GetMountPointFromPath
(
const FStringView InPath, |
Use FPathViews::GetMountPointNameFromPath instead Returns name of the first folder in a path Removes starting forward slash and Classes_ prefix Example: "/Classes_A/Textures" returns "A" and sets bOutHadClassesPrefix=true | |
| FName | GetParentPath
(
FName Path |
Returns name of parent virtual path when given a virtual path | |
| bool | GetSubPaths
(
FName BasePath, |
Recursively gathers all child paths from the specified base path relative to this node | |
| const TMap< FName, FName > & | Returns reference to map that allows looking up an internal path when given a virtual path | ||
| int32 | NumPaths () |
Returns number of paths in total | |
| bool | PathExists
(
FName Path |
Checks whether the given path is one that we know about | |
| bool | PathExists
(
FName Path, |
Checks whether the given path is one that we know about | |
| bool | RemovePath
(
FName Path, |
Removes the specified path from the tree, calling OnPathRemoved for any existing paths removed. | |
| void | Reset () |
Clears all paths | |
| EContentBrowserPathType | TryConvertVirtualPathToInternal
(
FStringView InPath, |
Tries to converts virtual path into an internal path. | |
| EContentBrowserPathType | TryConvertVirtualPathToInternal
(
FStringView InPath, |
Tries to converts virtual path into an internal path. | |
| EContentBrowserPathType | TryConvertVirtualPathToInternal
(
FName InPath, |
Tries to converts virtual path into an internal path. |