GetPortReference(Hash128)
Retrieves a reference to a port in the graph associated with this context, using the port's unique identifier.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor.GraphVisualization
- Assembly: UnityEditor
public PortReference GetPortReference(Hash128 portID)
Parameters
Returns
Type | Description |
|---|---|
| PortReference | A PortReference that references the port with the specified ID in the graph associated with this context. |
Remarks
The returned PortReference can be used to set, retrieve, or clear the port preview for that specific port in the graph canvas. Throws ObjectDisposedException when you access this property after you call Context.Dispose on the context. Throws ArgumentException when you provide an invalid .
portIDExamples
context.GetPortReference(portID).SetPreview("42.0");