Ejemplo 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();
    }
Ejemplo n.º 2
0
 public UnityEditorIMGUIControlsTreeViewController(UnityEditor.EditorWindow editorWindow, UnityEditor.IMGUI.Controls.TreeViewState treeViewState)
 {
     m_instance = Activator.CreateInstance(UnityTypes.UnityEditor_IMGUI_Controls_TreeViewController, new object[] { editorWindow, treeViewState });
 }