示例#1
0
 protected virtual void OnEnable()
 {
     if (m_TreeViewState == null)
     {
         m_TreeViewState = new TreeViewState();
     }
     m_SimpleTreeView = new SimpleTreeView(m_TreeViewState);
     m_SimpleTreeView.onItemSelect      = OnItemSelect;
     m_SimpleTreeView.onItemClick       = OnItemClick;
     m_SimpleTreeView.onItemDoubleClick = OnItemDoubleClick;
     m_SimpleTreeView.Items             = m_ItemNames;
     m_SimpleTreeView.Reload();
 }