기술 자료

Unity Engine

Unity Engine

GetNodeReference(Hash128)

Returns a NodeReference that identifies the node with the given ID within this visualization context.
읽는 시간 1분최근 업데이트: 2달 전

Definition

public NodeReference GetNodeReference(Hash128 nodeID)

Parameters

nodeID

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;