GetNode(IPort)
Retrieves the INode that owns the specified port.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public static INode GetNode(this IPort port)
Parameters
The port to get the owning node from.
Returns
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}.");