DirectoryTreeView
All collections widgets support virtualization: gameobjects created only for the visible items.
Add
Selectablecomponent to use keyboard and gamepad navigation.See also FolderDialog.
Options
Options are almost same as the TreeView.
Data Source
ObservableList<TreeNode<FileSystemEntry>>Not available in the inspector window.Filled automatically.Root Directory
stringRoot directory.
Exceptions View
IOExceptionsViewSpecial component to display IO errors.
Methods
TreeNode<FileSystemEntry> ExpandPath(string path, bool scrollToNode = true)Expand nodes to the specified path. Returns
nullif node not found.TreeNode<FileSystemEntry> Path2Node(string path)Get node of the specified path. Returns
nullif node not found.TreeNode<FileSystemEntry> Path2NearestNode(string path)Get exact node or nearest existing parent node of the specified path.
void RefreshDirectories()Refresh displayed directories according to current state of the file system.