GetWireReference(Hash128, Hash128)
Returns a WireReference that identifies the node with the given ID within this visualization context.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor.GraphVisualization
- Assembly: UnityEditor
public WireReference GetWireReference(Hash128 outputPortID, Hash128 inputPortID)
Parameters
Returns
Type | Description |
|---|---|
| WireReference | A WireReference that targets the wire identified by |
Remarks
The returned WireReference is only meaningful for this Context and references the wire by its port IDs rather than by direct lookup. The wire does not need to exist in the current graph canvas at the time of this call. Throws ObjectDisposedException when you access this property after you call Context.Dispose on the context. Throws ArgumentException when you provide an invalid or .
outputPortIDinputPortIDExamples
WireReference wireRef = context.GetWireReference(outputPortID, inputPortID);wireRef.IsDashed = true;