기술 자료

Unity Engine

Unity Engine

GetNode(IPort)

Retrieves the INode that owns the specified port.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public static INode GetNode(this IPort port)

Parameters

port

The port to get the owning node from.

Returns

Type

Description

INodeThe INode that contains the specified port.

Remarks

This is helpful when analyzing graph structures, especially when traversing connections. The returned node provides context for the port’s role in the graph.

Examples

IPort port = somePortReference;INode node = port.GetNode();Debug.Log($"Port '{port.name}' belongs to node: {node}.");