# PopulateContextMenu(T, SerializedProperty, ref GenericMenu)

> Populate a context menu with custom methods for your IRenderPipelineGraphicsSettings.

## Definition

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

## PopulateContextMenu(T, SerializedProperty, GenericMenu)

```csharp
void PopulateContextMenu(T setting, SerializedProperty property, ref GenericMenu menu)
```

### Parameters

**** (T): The [IRenderPipelineGraphicsSettings](/engine/6000.7/script-reference/unityengine/rendering/irenderpipelinegraphicssettings.md) that the contextual menu changed. Its type matches the generic type used in the interface.**** (\[SerializedProperty]\(/engine/6000.7/script-reference/unityeditor/serializedproperty)): The [SerializedProperty](/engine/6000.7/script-reference/unityeditor/serializedproperty.md) targeting the drawn [IRenderPipelineGraphicsSettings](/engine/6000.7/script-reference/unityengine/rendering/irenderpipelinegraphicssettings.md).**** (\[GenericMenu]\(/engine/6000.7/script-reference/unityeditor/genericmenu)): The [GenericMenu](/engine/6000.7/script-reference/unityeditor/genericmenu.md) being constructed, to be amended with some custom commands.
