Documentation

Unity Engine


User Manual

Script Reference

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 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
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.