namespace UIWidgets.Examples { using UIWidgets; using UnityEngine; /// /// TreeViewComponent with function to process double click event. /// public class TreeViewComponentDoubleClick : TreeViewComponent { /// /// Function to process click event. /// Attach this function to DefaultItem.OnClick. /// public void ProcessDoubleClick() { // do something with Node or Item Debug.Log(Node.Item.Name); // var tree = Owner as TreeView; // tree.DoSomething(); } } }