Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace UIWidgetsSamples
- {
- 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(Node.Item.Name + " clicked");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement