s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
jams
Workshop
Steam
open_in_new
Steam Workshop
Assets
view_in_ar
Models
texture
Materials
apparel
Clothing
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
FolderTree
chevron_left
Classes
class
FolderTree
Constructors
functions
FolderTree
Properties
data_object
GetFolderIcon
data_object
OnFolderSelected
data_object
Roots
data_object
SelectedSource
data_object
Source
Methods
functions
Refresh
functions
SelectFolder
functions
SetRoots
FolderTree
A virtualized tree of independently browsable file sources.
class
Sandbox.UI
.
account_tree
extends
Panel
sealed
Sandbox.Engine
build
Constructors
1
FolderTree
(
)
data_object
Properties
5
GetFolderIcon
Func`3
Supplies a material icon and optional tint for each folder. The root path is empty.
OnFolderSelected
Action`1
Called when a folder is selected. SelectedSource identifies the root the path belongs to.
Roots
ReadOnlyCollection`1
File sources shown at the top level, in display order.
SelectedSource
IFileBrowserSource
Source containing the current selection.
Source
IFileBrowserSource
Convenience for a tree with a single root. In a multi-root tree this returns the first root.
functions
Methods
3
Refresh
(
)
Reads the visible branches and their icons again.
SelectFolder
(
path
)
Reveals a folder in the selected root, or the first root when nothing is selected.
SetRoots
(
sources
)
Replaces the top-level sources. Each root has its own paths, expansion and selection identity.
Inheritance
Panel
FolderTree
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.