# Mode

> The mode of this variable node, which determines its available ports.

## Definition

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

```csharp
VariableNodeMode Mode { get; }
```

### Remarks

Determines which ports the node exposes. Refer to [VariableNodeMode](/engine/6000.7/script-reference/unity/graphtoolkit/editor/variablenodemode.md) for details on how each mode affects the node’s ports.

To change the mode of this node in the graph, use the **Allow to set value in graph** checkbox in its inspector.
