Class SearchWindowProvider
SearchWindowProvider represents the context menu search when adding nodes to graph Implements the ScriptableObject Implements the ISearchWindowProvider
Inherited Members
Namespace: Mechatronics.SystemGraph
Syntax
public class SearchWindowProvider : ScriptableObject, ISearchWindowProvider
Properties
ConnectedPortView
Gets or sets the connected port view.
Declaration
public PortView ConnectedPortView { get; set; }
Property Value
| Type | Description |
|---|---|
| PortView | The connected port view. |
nodeNeedsRepositioning
Gets or sets a value indicating whether [node needs repositioning].
Declaration
public bool nodeNeedsRepositioning { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
targetGroup
Gets or sets the target group.
Declaration
public VisualElement targetGroup { get; set; }
Property Value
| Type | Description |
|---|---|
| VisualElement | The target group. |
targetPosition
Gets or sets the target position.
Declaration
public Vector2 targetPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 | The target position. |
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. |
Implements
GetTypesOrNothing(Assembly)
Gets the types or nothing.
Declaration
public static IEnumerable<Type> GetTypesOrNothing(Assembly assembly)
Parameters
| Type | Name | Description |
|---|---|---|
| Assembly | assembly | The assembly. |
Returns
| Type | Description |
|---|---|
| IEnumerable<Type> | IEnumerable<Type>. |
Initialize(EditorWindow, GraphEditorView, SystemGraphView)
Initializes the specified editor window.
Declaration
public void Initialize(EditorWindow editorWindow, GraphEditorView logicGraphEditorView, SystemGraphView graphView)
Parameters
| Type | Name | Description |
|---|---|---|
| EditorWindow | editorWindow | The editor window. |
| GraphEditorView | logicGraphEditorView | The logic graph editor view. |
| SystemGraphView | graphView | The graph view. |
OnSelectEntry(SearchTreeEntry, SearchWindowContext)
Called when [select entry].
Declaration
public bool OnSelectEntry(SearchTreeEntry entry, SearchWindowContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchTreeEntry | entry | The entry. |
| SearchWindowContext | context | The context. |
Returns
| Type | Description |
|---|---|
| Boolean |
|