Class NodeSearchWindow
Node search window for adding new nodes.
Implements
ISearchWindowProvider
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetInstanceID()
Object.GetHashCode()
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.ToString()
Object.name
Object.hideFlags
Namespace: InsaneScatterbrain.ScriptGraph.Editor.NodeSearch
Syntax
public class NodeSearchWindow : ScriptableObject, ISearchWindowProvider
Methods
CreateSearchTree(SearchWindowContext)
Generates data to populate the search window.
Declaration
public List<SearchTreeEntry> CreateSearchTree(SearchWindowContext context)
Parameters
Type | Name | Description |
---|---|---|
SearchWindowContext | context | Contextual data initially passed the window when first created. |
Returns
Type | Description |
---|---|
List<SearchTreeEntry> | Returns the list of SearchTreeEntry objects displayed in the search window. |
Initialize(ScriptGraphView, ScriptNodeViewTypesRegistry)
Initializes the node search window.
Declaration
public void Initialize(ScriptGraphView view, ScriptNodeViewTypesRegistry registry)
Parameters
Type | Name | Description |
---|---|---|
ScriptGraphView | view | The script graph view that it's a part of. |
ScriptNodeViewTypesRegistry | registry | The node view types registry. |
OnSelectEntry(SearchTreeEntry, SearchWindowContext)
Selects an entry in the search tree list.
Declaration
public bool OnSelectEntry(SearchTreeEntry entry, SearchWindowContext context)
Parameters
Type | Name | Description |
---|---|---|
SearchTreeEntry | entry | |
SearchWindowContext | context | Contextual data to pass to the search window when it is first created. |
Returns
Type | Description |
---|---|
bool |
Open(Vector2, Vector2, ISearchFilter, Action<IScriptNode>)
Opens the node search window at the given position.
Declaration
public void Open(Vector2 menuPosition, Vector2 newPlacementPosition, ISearchFilter applySearchFilter = null, Action<IScriptNode> applyNodeAddedCallback = null)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | menuPosition | The position to open the menu. |
Vector2 | newPlacementPosition | The position a new node will be placed, if one's created. |
ISearchFilter | applySearchFilter | The search filter to apply on the entries. |
Action<IScriptNode> | applyNodeAddedCallback | The callback, called when a new node has been added. |
Implements
UnityEditor.Experimental.GraphView.ISearchWindowProvider