Inheritance: TreeViewControl
Esempio n. 1
0
    public void OnEnable()
    {
        if (m_treeViewState == null)
        {
            m_treeViewState = new UnityEditor.IMGUI.Controls.TreeViewState();
        }

        var multiColumnHeaderState = AkWwiseTreeView.CreateDefaultMultiColumnHeaderState();
        var multiColumnHeader      = new UnityEditor.IMGUI.Controls.MultiColumnHeader(multiColumnHeaderState);

        m_treeView = new AkWwiseTreeView(m_treeViewState, multiColumnHeader, AkWwiseProjectInfo.GetTreeData());
        m_treeView.SetDoubleClickFunction(PlayPauseItem);

        m_treeView.dirtyDelegate = RequestRepaint;

        m_SearchField = new UnityEditor.IMGUI.Controls.SearchField();
        m_SearchField.downOrUpArrowKeyPressed += m_treeView.SetFocusAndEnsureSelectedItem;
        m_SearchField.SetFocus();
    }