DirectoryTreeView

  • All collections widgets support virtualization: gameobjects created only for the visible items.

  • Add Selectable component 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 string

    Root directory.

  • Exceptions View IOExceptionsView

    Special component to display IO errors.

Methods

  • TreeNode<FileSystemEntry> ExpandPath(string path, bool scrollToNode = true)

    Expand nodes to the specified path. Returns null if node not found.

  • TreeNode<FileSystemEntry> Path2Node(string path)

    Get node of the specified path. Returns null if 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.