コード例 #1
0
 protected SearchQueryTreeViewItem(SearchQueryTreeView treeView, string displayName, Texture2D icon)
 {
     this.icon        = icon;
     this.displayName = displayName;
     children         = new List <TreeViewItem>();
     this.treeView    = treeView;
 }
コード例 #2
0
 public SearchQueryCategoryTreeViewItem(SearchQueryTreeView treeView, Action addQueryHandler, GUIContent content)
     : base(treeView, content.text, content.image as Texture2D)
 {
     this.addQueryHandler = addQueryHandler;
     this.content         = content;
     addBtnContent        = new GUIContent("", EditorGUIUtility.FindTexture("SaveAs"), content.tooltip);
     id = $"SearchQueryCategoryTreeViewItem_{content.text}".GetHashCode();
 }
コード例 #3
0
 public SearchQueryUserTreeViewItem(SearchQueryTreeView treeView, SearchQuery query)
     : base(treeView, query.name, query.thumbnail)
 {
     m_Query = query;
     id      = m_Query.guid.GetHashCode();
 }