GetWireReference(Hash128, Hash128)
Returns a WireReference that identifies the node with the given ID within this visualization context.
読み終わるまでの所要時間 1 分最終更新 2ヶ月前
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;