Disconnect(IPort, IPort)
Removes the wire connection between two ports.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public bool Disconnect(IPort output, IPort input)
Parameters
Returns
Type | Description |
|---|---|
| bool | true if a connection (wire or portal) existed and was removed; otherwise false. |
Remarks
This method removes direct wires and any Portals that serve only this specific connection. 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.