ドキュメント

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.