Navigation
API > API/Editor > API/Editor/ContentBrowserData
Tree of virtual paths ending where internal paths start. Used for conversion of paths and during enumerate.
| Name | FContentBrowserVirtualPathTree |
| Type | class |
| Header File | /Engine/Source/Editor/ContentBrowserData/Public/ContentBrowserVirtualPathTree.h |
| Include Path | #include "ContentBrowserVirtualPathTree.h" |
Syntax
class FContentBrowserVirtualPathTree
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ChildPathToParentPath | TMap< FName, FName > | A one-to-one mapping between a child path and its parent path. | ContentBrowserVirtualPathTree.h | |
| ParentPathToChildPaths | TMap< FName, TSet< FName > > | A one-to-many mapping between a parent path and its child paths. | ContentBrowserVirtualPathTree.h | |
| VirtualToInternalMounts | TMap< FName, FName > | A one-to-one mapping between a virtual path and internal path | ContentBrowserVirtualPathTree.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool CachePath
(
FName Path, |
Adds the specified path to the tree, creating nodes as needed and calling OnPathAdded for any new paths added. | ContentBrowserVirtualPathTree.h | |
void EnumerateAllPaths
(
TFunctionRef< bool(FName)> Callback |
Enumerate all of the paths we know about | ContentBrowserVirtualPathTree.h | |
bool EnumerateSubPaths
(
FName BasePath, |
Recursively enumerates all child paths from the specified base path relative to this node | ContentBrowserVirtualPathTree.h | |
SIZE_T GetAllocatedSize() |
ContentBrowserVirtualPathTree.h | ||
| Get all of the paths we know about | ContentBrowserVirtualPathTree.h | ||
| Returns name of parent virtual path when given a virtual path | ContentBrowserVirtualPathTree.h | ||
| Recursively gathers all child paths from the specified base path relative to this node | ContentBrowserVirtualPathTree.h | ||
| Returns reference to map that allows looking up an internal path when given a virtual path | ContentBrowserVirtualPathTree.h | ||
int32 NumPaths() |
Returns number of paths in total | ContentBrowserVirtualPathTree.h | |
bool PathExists
(
FName Path |
Checks whether the given path is one that we know about | ContentBrowserVirtualPathTree.h | |
bool PathExists
(
FName Path, |
Checks whether the given path is one that we know about | ContentBrowserVirtualPathTree.h | |
bool RemovePath
(
FName Path, |
Removes the specified path from the tree, calling OnPathRemoved for any existing paths removed. | ContentBrowserVirtualPathTree.h | |
void Reset() |
Clears all paths | ContentBrowserVirtualPathTree.h | |
EContentBrowserPathType TryConvertVirtualPathToInternal
(
FStringView InPath, |
Tries to converts virtual path into an internal path. | ContentBrowserVirtualPathTree.h | |
EContentBrowserPathType TryConvertVirtualPathToInternal
(
FStringView InPath, |
ContentBrowserVirtualPathTree.h | ||
EContentBrowserPathType TryConvertVirtualPathToInternal
(
FName InPath, |
ContentBrowserVirtualPathTree.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static 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 | ContentBrowserVirtualPathTree.h |