Treeview
The GUI element that represents an interactive tree.
by Neomaster
★★★★★ star rating
Price History +
Usage
- Scene selection.
- Developer or tester menu.
- Representation of tree objects with node controls.
Content
The project consists of C# scripts, other files are used for demonstration purposes.
- Scenes/TreeviewDemo.unity - demonstration scene with tree samples
- Textures/ - sprites for buttons and glyphs
- Treeview/ - C# scripts that represent tree entities and display GUI elements
- Glyphs.psd - Photoshop project template for creating glyphs in all states
- Slider.cs - shows the tree samples in TreeviewDemo.unity
- TreeviewDataExample.cs - example of a tree management algorithm
Get started
- Create an empty object.
- Add the Treeview.cs component.
- Set the font of the node.
- Set glyph font if branches and nodes will be represented as pseudographic text characters.
- Add the script that initializes and manages the tree hierarchy, such as TreeviewDataExample.cs.