docs.unity.cn
    Show / Hide Table of Contents

    Class SearchWindowProvider

    SearchWindowProvider represents the context menu search when adding nodes to graph Implements the ScriptableObject Implements the ISearchWindowProvider

    Inheritance
    Object
    Object
    ScriptableObject
    SearchWindowProvider
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(String)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, Boolean)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, Boolean)
    Object.ToString()
    Object.name
    Object.hideFlags
    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

    true if [node needs repositioning]; otherwise, false.

    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
    ISearchWindowProvider.CreateSearchTree(SearchWindowContext)

    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

    true if succeeded, false otherwise.

    Implements
    ISearchWindowProvider.OnSelectEntry(SearchTreeEntry, SearchWindowContext)

    See Also

    ScriptableObject
    ISearchWindowProvider
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, October 18, 2022
    Terms of use