Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


INode

Interface for a node.
Read time 1 minuteLast updated 6 days ago

Definition

public interface INode

Remarks

This interface provides methods for accessing input and output ports, which are essential for connecting nodes.

Properties

Property

Description

DefaultColorThe highlight color of the node. The highlight is located on the upper border of nodes, and on the upper and lower borders of context nodes.
FillAmountThe progress fill amount displayed on the node's accent bar, expressed as a percentage.
GraphThe Graph that contains this node.
IDThe globally unique identifier for this node.
InputPortCountThe number of input ports on the node.
IsConnectedWhether the node is connected to at least one other node.
NodeOptionCountThe number of node options defined in the node.
NodeOptionsThe node options defined on this node.
OutputPortCountThe number of output ports on the node.
PositionThe position of the node in the graph.
SubtitleThe secondary text displayed in the node's header.
TitleThe main text displayed in the node's header.
TooltipThe text displayed when hovering over the node's header.

Methods

Method

Description

GetInputPortRetrieves an input port using its index.
GetInputPortByNameRetrieves an input port using its name.
GetInputPortsRetrieves all input ports on the node in the order they are displayed.
GetNodeOptionRetrieves a node option using its zero-based index.
GetNodeOptionByNameRetrieves a node option using its name.
GetOutputPortRetrieves an output port using its index in the displayed order.
GetOutputPortByNameRetrieves an output port using its name.
GetOutputPortsRetrieves all output ports on the node in the order they are displayed.
RemoveFromGraphRemoves the node from its graph.