# SetValueAndNotify<T>(IRenderPipelineGraphicsSettings, ref T, T, string)

> Sets the value of a given property. If the new value is different from the previous one, the method raises a notification of the change.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Rendering](/engine/6000.6/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

## SetValueAndNotify\<T>(IRenderPipelineGraphicsSettings, T, T, string)

```csharp
public static void SetValueAndNotify<T>(this IRenderPipelineGraphicsSettings settings, ref T currentPropertyValue, T newValue, string propertyName = null)
```

### Parameters

**** (\[IRenderPipelineGraphicsSettings]\(/engine/6000.6/script-reference/unityengine/rendering/irenderpipelinegraphicssettings)): The [IRenderPipelineGraphicsSettings](/engine/6000.6/script-reference/unityengine/rendering/irenderpipelinegraphicssettings.md) instance that contains the property.**** (T): The current value.**** (T): The new value.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The property name. It can be inferred automatically.
