# DataModeChangeEventArgs

> Container for the different parameters of the IDataModeController.dataModeChanged event.

## Definition

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

```csharp
public readonly struct DataModeChangeEventArgs
```

## Fields

| Value                                                                                                       | Description                                                                                                                                                                                                                  |
| ----------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [changedThroughUI](/engine/6000.7/script-reference/unityeditor/datamodechangeeventargs/changedthroughui.md) | Whether the change was initiated by the [DataMode](/engine/6000.7/script-reference/unityeditor/datamode.md) switcher UI at the top-right of the [EditorWindow](/engine/6000.7/script-reference/unityeditor/editorwindow.md). |
| [nextDataMode](/engine/6000.7/script-reference/unityeditor/datamodechangeeventargs/nextdatamode.md)         | [DataMode](/engine/6000.7/script-reference/unityeditor/datamode.md) to which the [EditorWindow](/engine/6000.7/script-reference/unityeditor/editorwindow.md) should change.                                                  |

## Constructors

| Constructor                                                                                                                                 | Description                                                                                                        |
| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| [DataModeChangeEventArgs(UnityEditor.DataMode,System.Boolean)](/engine/6000.7/script-reference/unityeditor/datamodechangeeventargs/ctor.md) | Constructor for [DataModeChangeEventArgs](/engine/6000.7/script-reference/unityeditor/datamodechangeeventargs.md). |
