# StateMachineMenuContext

> Argument passed to a contextual menu handler registered for a StateMachineMenuContext.StateMachine type.

## Definition

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

```csharp
public sealed class StateMachineMenuContext : MenuContext
```

## Remarks

A method decorated with [StateMachineMenuAttribute](/engine/6000.7/script-reference/unity/graphtoolkit/editor/statemachinemenuattribute.md), or with [BlackboardMenuAttribute](/engine/6000.7/script-reference/unity/graphtoolkit/editor/blackboardmenuattribute.md) for a [StateMachineMenuContext.StateMachine](/engine/6000.7/script-reference/unity/graphtoolkit/editor/statemachinemenucontext/statemachine.md) subclass, must take this type. For a [Graph](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graph.md) subclass, take [GraphMenuContext](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphmenucontext.md) instead, and for [ConditionMenuAttribute](/engine/6000.7/script-reference/unity/graphtoolkit/editor/conditionmenuattribute.md) take [ConditionMenuContext](/engine/6000.7/script-reference/unity/graphtoolkit/editor/conditionmenucontext.md).

## Properties

| Property                                                                                                          | Description                                                     |
| ----------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| [StateMachine](/engine/6000.7/script-reference/unity/graphtoolkit/editor/statemachinemenucontext/statemachine.md) | The state machine that owns the view the user right-clicked on. |

## Inheritance

**Inherited Members:**

* [MenuContext.AppendAction(string, Action)](/engine/6000.7/script-reference/unity/graphtoolkit/editor/menucontext/appendaction.md#appendaction\(string-action\))
* [MenuContext.AppendAction(string, Action\<DropdownMenuAction>)](/engine/6000.7/script-reference/unity/graphtoolkit/editor/menucontext/appendaction.md#appendaction\(string-actiondropdownmenuaction\))
* [MenuContext.AppendAction(string, Action\<DropdownMenuAction>, Func\<DropdownMenuAction, Status>, Object)](/engine/6000.7/script-reference/unity/graphtoolkit/editor/menucontext/appendaction.md#appendaction\(string-actiondropdownmenuaction-funcdropdownmenuaction-status-object\))
* [MenuContext.AppendSeparator(string)](/engine/6000.7/script-reference/unity/graphtoolkit/editor/menucontext/appendseparator.md)
* [MenuContext.ClickedObject()](/engine/6000.7/script-reference/unity/graphtoolkit/editor/menucontext/clickedobject.md)
* [MenuContext.MousePosition()](/engine/6000.7/script-reference/unity/graphtoolkit/editor/menucontext/mouseposition.md)
