# VariableKind

> Gets or sets the kind of the variable, such as Local, Input, or Output.

## Definition

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

```csharp
VariableKind VariableKind { get; set; }
```

### Remarks

This property defines the scope of the variable. Use [VariableKind.Local](/engine/6000.6/script-reference/unity/graphtoolkit/editor/variablekind/local.md) for variables used only within the current graph. Use [VariableKind.Input](/engine/6000.6/script-reference/unity/graphtoolkit/editor/variablekind/input.md) or [VariableKind.Output](/engine/6000.6/script-reference/unity/graphtoolkit/editor/variablekind/output.md) to expose variables to or from a subgraph. This value does not determine the [PortDirection](/engine/6000.6/script-reference/unity/graphtoolkit/editor/portdirection.md) of the port on the variable node.
