Advertisement
ilih

Untitled

Sep 8th, 2018
106
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. namespace UIWidgetsSamples
  2. {
  3.     using UIWidgets;
  4.     using UnityEngine;
  5.  
  6.     /// <summary>
  7.     /// TreeViewComponent with function to process click event.
  8.     /// </summary>
  9.     public class TreeViewComponentWithClick : TreeViewComponent
  10.     {
  11.         /// <summary>
  12.         /// Function to process click event.
  13.         /// Attach this function to DefaultItem.OnClick.
  14.         /// </summary>
  15.         public void ProcessClick()
  16.         {
  17.             // do something with Node or Item
  18.             Debug.Log(Node.Item.Name + " clicked");
  19.         }
  20.     }
  21. }
Advertisement
RAW Paste Data Copied
Advertisement