# AddDisabledItem(string, bool)

> Adds a disabled item to this menu using a default VisualElement.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public override void AddDisabledItem(string itemName, bool isChecked)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The text to display to the user.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Indicates whether a checkmark next to the item is displayed.

### Remarks

Items added with this method cannot be selected by the user.
