void OnEnable() { // Check if we already had a serialized view state (state // that survived assembly reloading) if (m_TreeViewState == null) { m_TreeViewState = new TreeViewState(); } m_SimpleTreeView = new SimpleTreeView(m_TreeViewState); }
void OnEnable() { // Check if we already had a serialized view state (state // that survived assembly reloading) if (m_TreeViewState == null) { m_TreeViewState = new TreeViewState(); } m_TreeView = new SimpleTreeView(m_TreeViewState); m_SearchField = new SearchField(); m_SearchField.downOrUpArrowKeyPressed += m_TreeView.SetFocusAndEnsureSelectedItem; }