# AddMenuItem(DropdownMenu, string, string)

> Add a MenuItem to the Scene view context menu.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Actions](/engine/6000.6/script-reference/unityeditor/actions.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static void AddMenuItem(DropdownMenu menu, string menuItemPath, string contextMenuPath = "")
```

### Parameters

**** (\[DropdownMenu]\(/engine/6000.6/script-reference/unityengine/uielements/dropdownmenu)): The Scene view context menu to add a [MenuItem](/engine/6000.6/script-reference/unityeditor/menuitem.md) to.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The menu item path that is registered with [MenuItem](/engine/6000.6/script-reference/unityeditor/menuitem.md).**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The menu item path to display in the Scene view context menu.
