浏览代码

Merge pull request #1844 from Unity-Technologies/FixUnsupportedAPIMessage

Fixed Unsupported API error message in the editor
/main
GitHub 6 年前
当前提交
eb16617a
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 9
      com.unity.render-pipelines.core/CoreRP/Utilities/CoreUtils.cs

9
com.unity.render-pipelines.core/CoreRP/Utilities/CoreUtils.cs


public static void DisplayUnsupportedAPIMessage()
{
string msg = "Platform " + SystemInfo.operatingSystem + " with device " + SystemInfo.graphicsDeviceType.ToString() + " is not supported, no rendering will occur";
// If we are in the editor they are many possible targets that does not matches the current OS so we use the active build target instead
#if UNITY_EDITOR
string currentPlatform = UnityEditor.EditorUserBuildSettings.activeBuildTarget.ToString();
#else
string currentPlatform = SystemInfo.operatingSystem;
#endif
string msg = "Platform " + currentPlatform + " with device " + SystemInfo.graphicsDeviceType.ToString() + " is not supported, no rendering will occur";
DisplayUnsupportedMessage(msg);
}

正在加载...
取消
保存