Build The Tree From Blueprint
- Open your Widget Blueprint graph.
- Get a reference to the tree view widget.
- Create an array of Tree Node entries.
- For every entry, set Node Name, Parent ID, optional Node Padding, and optional Extra Strings.
- Set the tree view's Tree Nodes array to your new array.
- Call Create Tree.
Refresh After Data Changes
When your inventory, quest list, settings list, or other data changes, rebuild the Tree Nodes array and call Create Tree again. This clears the old tree and creates the new hierarchy.
Control Nodes From Blueprint
| Blueprint Function | Use It For |
|---|---|
| Create Tree | Build or rebuild the visible tree from Tree Nodes. |
| Expand Tree Item | Open a specific node by Node ID. |
| Collapse Tree Item | Close a specific node by Node ID. |
| Toggle Node Expansion | Switch a node between expanded and collapsed. |
| Select Tree Item | Select a specific node by Node ID. |
Node ID reminder: Node IDs are zero-based and follow the order of Tree Nodes after Create Tree. The first entry is Node ID 0, the second is Node ID 1, and so on.