浏览代码

only support d3d11 for now

/main
siyao 3 年前
当前提交
2f48c0a4
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      com.unity.uiwidgets/Runtime/engine/UIWidgetsPanel.cs

4
com.unity.uiwidgets/Runtime/engine/UIWidgetsPanel.cs


void DisableUIWidgets() {
Debug.Log("Please change graphic api for UIWidgets.\n" +
"Metal for iOS and MacOS.\n" +
"Direct3D for Windows\n" +
"Direct3D11 for Windows\n" +
"Vulkan for Android\n");
UIWidgetsDisabled = true;
enabled = false;

}
#endif
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
if (type != GraphicsDeviceType.Direct3D11 && type != GraphicsDeviceType.Direct3D12) {
if (type != GraphicsDeviceType.Direct3D11) {
DisableUIWidgets();
return;
}

正在加载...
取消
保存