# dataModeChanged

> Event for subscribing to DataMode changes.

## Definition

* **Type:** Event
* **Namespace:** [UnityEditor](/engine/6000.3/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
event Action<DataModeChangeEventArgs> dataModeChanged
```

### Remarks

This method accepts [DataModeChangeEventArgs](/engine/6000.3/script-reference/unityeditor/datamodechangeeventargs.md). You can register to this method to update the contents of the window for the given data mode for example.
