# GraphMenuContext

> Argument passed to a contextual menu handler registered for a GraphMenuContext.Graph 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 GraphMenuContext : MenuContext
```

## Remarks

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

## Properties

| Property                                                                                     | Description                                             |
| -------------------------------------------------------------------------------------------- | ------------------------------------------------------- |
| [Graph](/engine/6000.7/script-reference/unity/graphtoolkit/editor/graphmenucontext/graph.md) | The graph 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)
