# OnSelectionChanged(Preset)

> When a new Preset is selected in the modal window, this method is called by PresetSelector.

## Definition

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

> **Warning:**
>
> **Deprecated.** The PresetSelectorReceiver is deprecated. Please use PresetSelector.ShowSelector(Object\[], Preset, bool) instead.

```csharp
public virtual void OnSelectionChanged(Preset selection)
```

### Parameters

**** (\[Preset]\(/engine/6000.7/script-reference/unityeditor/presets/preset)): This parameter is set to null when 'None' is the new selection in the [PresetSelector](/engine/6000.7/script-reference/unityeditor/presets/presetselector.md).
