Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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.
Read time 1 minuteLast updated 11 days ago

Definition

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

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

Parameters

The IRenderPipelineGraphicsSettings instance that contains the property.

currentPropertyValue

T
The current value.

newValue

T
The new value.

propertyName

The property name. It can be inferred automatically.