Documentation

Unity Engine

Download Unity

Unity Engine

UpdateSupportedDataModes(IList<DataMode>, DataMode)

Updates the list of DataMode s that the EditorWindow supports, and sets the preferred DataMode to use when the DataMode switcher UI is set to Automatic.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
Warning
Deprecated. IDataModeController is deprecated and will be removed in a future release. #from(7000.0)
void UpdateSupportedDataModes(IList<DataMode> supportedDataMode, DataMode preferredDataMode)

Parameters

supportedDataMode

A list of the supported DataModes.

preferredDataMode

Preferred data mode to use given the current context when the DataMode switcher UI is set to Automatic.

Remarks

If the DataMode switcher UI is currently set to Automatic, the Editor window also changes to that preferred DataMode.