# VariableKind

> Specifies the scope of a IVariable.

## Definition

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

```csharp
public enum VariableKind
```

## Remarks

The [VariableKind](/engine/6000.6/script-reference/unity/graphtoolkit/editor/variablekind.md) enum defines the scope of a variable relative to subgraph usage. It determines whether a variable is scoped locally to the current graph, passed into the graph from a parent ([VariableKind.Input](/engine/6000.6/script-reference/unity/graphtoolkit/editor/variablekind/input.md)), or exposed back to the parent ([VariableKind.Output](/engine/6000.6/script-reference/unity/graphtoolkit/editor/variablekind/output.md)).

## Fields

| Value                                                                                      | Description                                    |
| ------------------------------------------------------------------------------------------ | ---------------------------------------------- |
| [Input](/engine/6000.6/script-reference/unity/graphtoolkit/editor/variablekind/input.md)   | A variable used as an input to a subgraph.     |
| [Local](/engine/6000.6/script-reference/unity/graphtoolkit/editor/variablekind/local.md)   | A variable used only within the current graph. |
| [Output](/engine/6000.6/script-reference/unity/graphtoolkit/editor/variablekind/output.md) | A variable used as an output from a subgraph.  |
