Exemplo n.º 1
0
    private void OnEnable()
    {
        if (m_TreeViewState == null)
        {
            m_TreeViewState = new TreeViewState();
        }
        m_SimpleTreeView = new GenerateTreeview <SaveInfo>("AssetBundle依赖查找工具", null, m_TreeViewState);
        SaveInfo si   = new SaveInfo("111");
        var      node = m_SimpleTreeView.AddForChild(m_SimpleTreeView.root, si.displayName, si);

        m_SimpleTreeView.Reload();
    }
Exemplo n.º 2
0
    void DrawGetDependencieBtn()
    {
        if (GUILayout.Button("获取依赖", GUILayout.ExpandWidth(true), GUILayout.Height(20)))
        {
            ConsoleE.Api.ClearLog();
            if (m_TreeViewState == null)
            {
                m_TreeViewState = new TreeViewState();
            }
            m_SimpleTreeView = new GenerateTreeview <SaveInfo>("AssetBundle依赖查找工具", null, m_TreeViewState);

            m_searchField = new SearchField();

            m_searchField.downOrUpArrowKeyPressed += m_SimpleTreeView.SetFocusAndEnsureSelectedItem;
            GetDependencie();
        }
    }