namespace UIWidgets.Examples
{
using System.Collections.Generic;
using UIWidgets;
using UnityEngine;
///
/// DialogTreeViewInputHelper
///
public class DialogTreeViewInputHelper : MonoBehaviour
{
///
/// TreeView.
///
[SerializeField]
public TreeView Folders;
ObservableList> nodes;
bool isInited;
///
/// Init.
///
public void Refresh()
{
if (isInited)
{
return;
}
var config = new List() { 5, 5, 2 };
nodes = TestTreeView.GenerateTreeNodes(config, isExpanded: true);
// Set nodes
Folders.Init();
Folders.Nodes = nodes;
isInited = true;
}
}
}