# INode

> Interface for a node.

## Definition

* **Type:** Interface
* **Namespace:** [Unity.GraphToolkit.Editor](/engine/6000.6/script-reference/unity/graphtoolkit/editor.md)
* **Assembly:** UnityEditor

```csharp
public interface INode
```

## Remarks

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

## Properties

| Property                                                                                              | Description                                                                                                                                  |
| ----------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| [DefaultColor](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/defaultcolor.md)       | The 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. |
| [FillAmount](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/fillamount.md)           | The progress fill amount displayed on the node's accent bar, expressed as a percentage.                                                      |
| [Graph](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/graph.md)                     | The Graph that contains this node.                                                                                                           |
| [ID](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/id.md)                           | The globally unique identifier for this node.                                                                                                |
| [InputPortCount](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/inputportcount.md)   | The number of input ports on the node.                                                                                                       |
| [IsConnected](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/isconnected.md)         | Whether the node is connected to at least one other node.                                                                                    |
| [NodeOptionCount](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/nodeoptioncount.md) | The number of node options defined in the node.                                                                                              |
| [NodeOptions](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/nodeoptions.md)         | The node options defined on this node.                                                                                                       |
| [OutputPortCount](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/outputportcount.md) | The number of output ports on the node.                                                                                                      |
| [Position](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/position.md)               | The position of the node in the graph.                                                                                                       |
| [Subtitle](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/subtitle.md)               | The secondary text displayed in the node's header.                                                                                           |
| [Title](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/title.md)                     | The main text displayed in the node's header.                                                                                                |
| [Tooltip](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/tooltip.md)                 | The text displayed when hovering over the node's header.                                                                                     |

## Methods

| Method                                                                                                        | Description                                                             |
| ------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [GetInputPort](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/getinputport.md)               | Retrieves an input port using its index.                                |
| [GetInputPortByName](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/getinputportbyname.md)   | Retrieves an input port using its name.                                 |
| [GetInputPorts](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/getinputports.md)             | Retrieves all input ports on the node in the order they are displayed.  |
| [GetNodeOption](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/getnodeoption.md)             | Retrieves a node option using its zero-based index.                     |
| [GetNodeOptionByName](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/getnodeoptionbyname.md) | Retrieves a node option using its name.                                 |
| [GetOutputPort](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/getoutputport.md)             | Retrieves an output port using its index in the displayed order.        |
| [GetOutputPortByName](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/getoutputportbyname.md) | Retrieves an output port using its name.                                |
| [GetOutputPorts](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/getoutputports.md)           | Retrieves all output ports on the node in the order they are displayed. |
| [RemoveFromGraph](/engine/6000.6/script-reference/unity/graphtoolkit/editor/inode/removefromgraph.md)         | Removes the node from its graph.                                        |
