FContentBrowserVirtualPathTree

Tree of virtual paths ending where internal paths start.

Unreal Engine C++ API Reference > 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, FName InternalPath, TFunctionRef< void(FName)> OnPathAd... ) 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, TFunctionRef< bool(FName, FName)> C..., bool bRecurse ) Recursively enumerates all child paths from the specified base path relative to this node
SIZE_T GetAllocatedSize ()  
bool GetAllPaths ( TSet< FName >& OutPaths ) Get all of the paths we know about
FStringView GetMountPointFromPath ( const FStringView InPath, bool& bOutHadClassesPrefix ) 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, TSet< FName >& OutPaths, bool bRecurse ) Recursively gathers all child paths from the specified base path relative to this node
const TMap< ... GetVirtualToInternalMounts () 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, bool& bIsFullyVirtual ) Checks whether the given path is one that we know about
bool RemovePath ( FName Path, TFunctionRef< void(FName)> OnPathRe... ) Removes the specified path from the tree, calling OnPathRemoved for any existing paths removed.
void Reset () Clears all paths
EContentBrow... TryConvertVirtualPathToInternal ( FStringView InPath, FStringBuilderBase& OutPath ) Tries to converts virtual path into an internal path.
EContentBrow... TryConvertVirtualPathToInternal ( FStringView InPath, FString& OutPath ) Tries to converts virtual path into an internal path.
EContentBrow... TryConvertVirtualPathToInternal ( FName InPath, FName& OutPath ) Tries to converts virtual path into an internal path.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library