# IRenderPipelineGraphicsSettingsContextMenu<T>

> Allows to modify the contextual menu of IRenderPipelineGraphicsSettings in the inspector.

## Definition

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

> **Warning:**
>
> **Deprecated.** IRenderPipelineGraphicsSettingsContextMenu\\\<T\\> is deprecated and will be removed in a future release. Use IRenderPipelineGraphicsSettingsContextMenu2\\\<T\\> instead. #from(6000.0)

```csharp
public interface IRenderPipelineGraphicsSettingsContextMenu<T> : IRenderPipelineGraphicsSettingsContextMenu where T : class, IRenderPipelineGraphicsSettings
```

## Examples

```csharp
using UnityEditor;
using UnityEditor.Rendering;
using UnityEngine.UIElements;

struct DummyAMenu : IRenderPipelineGraphicsSettingsContextMenu<DummyA>
{
    public int priority => 0;

    static void Increment(DummyA a) => a.myInt++;

    public void PopulateContextMenu(DummyA setting, PropertyDrawer _, ref GenericDropdownMenu menu)
    {
        if (!EditorApplication.isPlaying)
            menu.AddItem("Try Increment", false, () => Increment(setting));
        else
            menu.AddDisabledItem("Try Increment", false);
    }
}
```

## Methods

| Method                                                                                                                                          | Description                                                                                                                                                                               |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [PopulateContextMenu](/engine/6000.5/script-reference/unityeditor/rendering/irenderpipelinegraphicssettingscontextmenu1/populatecontextmenu.md) | Allows to populate context menu with custom methods for your [IRenderPipelineGraphicsSettings](/engine/6000.5/script-reference/unityengine/rendering/irenderpipelinegraphicssettings.md). |

## Inheritance

**Inherited Members:**

* [IRenderPipelineGraphicsSettingsContextMenu.PopulateContextMenu(IRenderPipelineGraphicsSettings, PropertyDrawer, GenericMenu)](/engine/6000.5/script-reference/unityeditor/rendering/irenderpipelinegraphicssettingscontextmenu/populatecontextmenu.md)
* [IRenderPipelineGraphicsSettingsContextMenu.priority](/engine/6000.5/script-reference/unityeditor/rendering/irenderpipelinegraphicssettingscontextmenu/priority.md)
