namespace UIWidgets.Examples
{
using UIWidgets;
using UnityEngine;
///
/// TreeViewComponent with function to process click event.
///
public class TreeViewComponentWithClick : TreeViewComponent
{
///
/// Function to process click event.
/// Attach this function to DefaultItem.OnClick.
///
public void ProcessClick()
{
// do something with Node or Item
Debug.Log(string.Format("{0} clicked", Node.Item.Name));
}
}
}