Files
ElectronBot/3.Software/Unity/ElectronBot-Studio/Assets/Packages/UI Widgets/Examples/TreeView/TreeViewComponentWithClick.cs
T
peng-zhihui 06ec2e469e Released.
2022-03-13 06:31:07 +08:00

21 lines
490 B
C#

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