# State.IOptionDefinitionContext

> Interface that provides methods to declare state options inside a state.

## Definition

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

```csharp
public interface State.IOptionDefinitionContext
```

## Remarks

Use this interface to add options on states. Unlike the node options of a [Node](/engine/6000.7/script-reference/unity/graphtoolkit/editor/node.md), the options of a state are never drawn on the state in the state machine canvas: they only appear in the graph inspector when the state is selected.

## Methods

| Method                                                                                                             | Description              |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------ |
| [AddOption](/engine/6000.7/script-reference/unity/graphtoolkit/editor/state/ioptiondefinitioncontext/addoption.md) | Adds a new state option. |
