기술 자료

Unity Engine

Unity Engine

TryChangeDataMode(DataMode)

Requests a DataMode change for the EditorWindow.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
bool TryChangeDataMode(DataMode newDataMode)

Parameters

newDataMode

The DataMode to which the Editor window should change.

Returns

Type

Description

boolWhether 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.