---
title: menuItem
product: Unity Editor
version: '6000.5'
latest_version: '7000.0'
status: This page documents version 6000.5. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/6000.5/script-reference/unityeditor/menuitem/menuitem
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityeditor/menuitem/menuitem.md
last_updated: 2026-09-15
generated_at: 2026-11-11T13:04:35.043Z
locale: en-us
---

# menuItem

> Holds a sanitized reference to the name of the menu item as a path.

## Definition

* **Type:** Field
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public string menuItem
```

### Remarks

This field stores the value set by the `itemName` parameter passed to the constructor. The field is public only for the benefit of Unity systems. Initialize it via the constructor parameter and don't modify it again.
