Connect(IPort, IPort)
Creates a wire connection between two ports.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public bool Connect(IPort output, IPort input)
Parameters
Returns
Type | Description |
|---|---|
| bool | true if the connection was created; false if the connection already existed. |
Remarks
Enclose this method with Graph.UndoBeginRecordGraph and Graph.UndoEndRecordGraph to add this operation to the undo stack and to update the graph view with the changes.