浏览代码

Merge pull request #1856 from Unity-Technologies/Add-warnign-message

Add warning message for platform not supported
/main
GitHub 6 年前
当前提交
994e68cb
共有 2 个文件被更改,包括 12 次插入0 次删除
  1. 3
      com.unity.render-pipelines.high-definition/CHANGELOG.md
  2. 9
      com.unity.render-pipelines.high-definition/HDRP/RenderPipeline/HDRenderPipeline.cs

3
com.unity.render-pipelines.high-definition/CHANGELOG.md


## [3.3.0-preview]
### Added
- Added an error message to say to use Metal or Vulkan when trying to use OpenGL API
### Fixed
- Fix an issue where the screen where darken when rendering camera preview
- Fix display correct target platform when showing message to inform user that a platform is not supported

9
com.unity.render-pipelines.high-definition/HDRP/RenderPipeline/HDRenderPipeline.cs


{
CoreUtils.DisplayUnsupportedAPIMessage();
// Display more information to the users when it should have use Metal instead of OpenGL
if (SystemInfo.graphicsDeviceType.ToString().StartsWith("OpenGL"))
{
if (SystemInfo.operatingSystem.StartsWith("Mac"))
CoreUtils.DisplayUnsupportedMessage("Use Metal API instead.");
else if (SystemInfo.operatingSystem.StartsWith("Windows"))
CoreUtils.DisplayUnsupportedMessage("Use Vulkan API instead.");
}
return false;
}

正在加载...
取消
保存