TryChangeDataMode(DataMode)
Requests a DataMode change for the EditorWindow.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
bool TryChangeDataMode(DataMode newDataMode)
Parameters
The DataMode to which the Editor window should change.
Returns
Type | Description |
|---|---|
| bool | Whether current Editor window has changed to the requested DataMode. |
Remarks
If the DataMode isn't supported or if the DataMode switcher UI isn't set to Automatic, the change request won't work.