DocsTreeView for UMGBlueprint Runtime Setup

Blueprint Runtime Setup

Build and refresh a tree from Blueprint

Build The Tree From Blueprint

  1. Open your Widget Blueprint graph.
  2. Get a reference to the tree view widget.
  3. Create an array of Tree Node entries.
  4. For every entry, set Node Name, Parent ID, optional Node Padding, and optional Extra Strings.
  5. Set the tree view's Tree Nodes array to your new array.
  6. 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 FunctionUse It For
Create TreeBuild or rebuild the visible tree from Tree Nodes.
Expand Tree ItemOpen a specific node by Node ID.
Collapse Tree ItemClose a specific node by Node ID.
Toggle Node ExpansionSwitch a node between expanded and collapsed.
Select Tree ItemSelect 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.
TreeView for UMG - Blueprint Runtime Setup | Athian Games