Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

public NodeReference GetNodeReference(Hash128 nodeID)

Parameters

nodeID

Hash128
The unique identifier of the node to reference.

Returns

Type

Description

NodeReferenceA NodeReference that targets the node identified by
nodeID
within this Context.

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
nodeID
.

Examples

NodeReference nodeRef = context.GetNodeReference(nodeID);nodeRef.FillAmount = 75f;