GetNodeReference(Hash128)
Returns a NodeReference 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 NodeReference GetNodeReference(Hash128 nodeID)
Parameters
Returns
Type | Description |
|---|---|
| NodeReference | A NodeReference that targets the node identified by |
Remarks
The returned NodeReference is only meaningful for this Context and references the node by its ID rather than by direct lookup. The node doesn't 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 .
nodeIDExamples
NodeReference nodeRef = context.GetNodeReference(nodeID);nodeRef.FillAmount = 75f;