Unity graph tool solution based on different implementation now focused on Unity.Experimental.Graphview
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEditor.Experimental.GraphView;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace TNode.Editor{
|
|
|
|
|
public class SearchWindowProvider:ScriptableObject,ISearchWindowProvider{
|
|
|
|
|
public List<SearchTreeEntry> CreateSearchTree(SearchWindowContext context){
|
|
|
|
|
var list = new List<SearchTreeEntry>();
|
|
|
|
|
list.Add(new SearchTreeGroupEntry(new GUIContent("Add New Node"), 0));
|
|
|
|
|
list.Add(new SearchTreeGroupEntry(new GUIContent("Add Placemat"), 0));
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool OnSelectEntry(SearchTreeEntry SearchTreeEntry, SearchWindowContext context){
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|