Class OutPortEdgeConnectListener
Edge connector listener that triggers the node search menu to be opened whenever an edge connection is dropped outside a port, displaying only the nodes compatible with the port. If a new node is created through the menu, the port is connected to the first compatible port found on the new node.
Inheritance
object
OutPortEdgeConnectListener
Implements
UnityEditor.Experimental.GraphView.IEdgeConnectorListener
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: InsaneScatterbrain.ScriptGraph.Editor
Syntax
public class OutPortEdgeConnectListener : IEdgeConnectorListener
Constructors
OutPortEdgeConnectListener(ScriptGraphView, NodeSearchWindow, ScriptGraphPort, ReferenceNode)
Declaration
public OutPortEdgeConnectListener(ScriptGraphView graphView, NodeSearchWindow nodeSearchWindow, ScriptGraphPort port, ReferenceNode referenceNode = null)
Parameters
Type | Name | Description |
---|---|---|
ScriptGraphView | graphView | |
NodeSearchWindow | nodeSearchWindow | |
ScriptGraphPort | port | |
ReferenceNode | referenceNode |
Methods
OnDrop(GraphView, Edge)
Declaration
public void OnDrop(GraphView view, Edge edge)
Parameters
Type | Name | Description |
---|---|---|
UnityEditor.Experimental.GraphView.GraphView | view | |
UnityEditor.Experimental.GraphView.Edge | edge |
OnDropOutsidePort(Edge, Vector2)
Declaration
public void OnDropOutsidePort(Edge edge, Vector2 placementPosition)
Parameters
Type | Name | Description |
---|---|---|
UnityEditor.Experimental.GraphView.Edge | edge | |
UnityEngine.Vector2 | placementPosition |
Implements
UnityEditor.Experimental.GraphView.IEdgeConnectorListener