Class NodeSearchWindow
Node search window for adding new nodes.
Inheritance
object
UnityEngine.Object
UnityEngine.ScriptableObject
NodeSearchWindow
Implements
UnityEditor.Experimental.GraphView.ISearchWindowProvider
Inherited Members
UnityEngine.ScriptableObject.SetDirty()
UnityEngine.ScriptableObject.CreateInstance(string)
UnityEngine.ScriptableObject.CreateInstance(System.Type)
UnityEngine.ScriptableObject.CreateInstance<T>()
UnityEngine.Object.GetInstanceID()
UnityEngine.Object.GetHashCode()
UnityEngine.Object.Equals(object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform, bool)
UnityEngine.Object.Instantiate<T>(T)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform, bool)
UnityEngine.Object.Destroy(UnityEngine.Object, float)
UnityEngine.Object.Destroy(UnityEngine.Object)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object, bool)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object)
UnityEngine.Object.FindObjectsOfType(System.Type)
UnityEngine.Object.DontDestroyOnLoad(UnityEngine.Object)
UnityEngine.Object.DestroyObject(UnityEngine.Object, float)
UnityEngine.Object.DestroyObject(UnityEngine.Object)
UnityEngine.Object.FindSceneObjectsOfType(System.Type)
UnityEngine.Object.FindObjectsOfTypeIncludingAssets(System.Type)
UnityEngine.Object.FindObjectsOfType<T>()
UnityEngine.Object.FindObjectOfType<T>()
UnityEngine.Object.FindObjectsOfTypeAll(System.Type)
UnityEngine.Object.FindObjectOfType(System.Type)
UnityEngine.Object.ToString()
UnityEngine.Object.name
UnityEngine.Object.hideFlags
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: InsaneScatterbrain.ScriptGraph.Editor.NodeSearch
Syntax
public class NodeSearchWindow : ScriptableObject, ISearchWindowProvider
Methods
CreateSearchTree(SearchWindowContext)
Declaration
public List<SearchTreeEntry> CreateSearchTree(SearchWindowContext context)
Parameters
Type | Name | Description |
---|---|---|
UnityEditor.Experimental.GraphView.SearchWindowContext | context |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<T><UnityEditor.Experimental.GraphView.SearchTreeEntry> |
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)
Declaration
public bool OnSelectEntry(SearchTreeEntry entry, SearchWindowContext context)
Parameters
Type | Name | Description |
---|---|---|
UnityEditor.Experimental.GraphView.SearchTreeEntry | entry | |
UnityEditor.Experimental.GraphView.SearchWindowContext | context |
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 |
---|---|---|
UnityEngine.Vector2 | menuPosition | The position to open the menu. |
UnityEngine.Vector2 | newPlacementPosition | The position a new node will be placed, if one's created. |
ISearchFilter | applySearchFilter | The search filter to apply on the entries. |
System.Action<T><IScriptNode> | applyNodeAddedCallback | The callback, called when a new node has been added. |
Implements
UnityEditor.Experimental.GraphView.ISearchWindowProvider