ConnectTo
Creates an edge between this port and the 'other' port.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Experimental.GraphView
- Assembly: UnityEditor
ConnectTo(Port)
Creates an edge between this port and the 'other' port.
public Edge ConnectTo(Port other)
Parameters
Other port to connect to.
Returns
Type | Description |
|---|---|
| Edge | Newly created edge. |
Remarks
The new edge still needs to be added to the graph.
ConnectTo<T>(Port)
Creates an edge between this port and the 'other' port.
public T ConnectTo<T>(Port other) where T : Edge, new()
Parameters
Other port to connect to.
Returns
Type | Description |
|---|---|
| T | Newly created edge. |
Remarks
The new edge still needs to be added to the graph.