文档

Unity Engine

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.
阅读时间1 分钟最后更新于 1 个月前

Definition

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