浏览代码

Merge pull request #316 from Unity-Technologies/fix_cloud_rendering_support

Fixed a compile error when cloud rendering was selected
/main
GitHub 3 年前
当前提交
fe797aa2
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 3
      com.unity.perception/Editor/Randomization/Editors/RunInUnitySimulationWindow.cs

3
com.unity.perception/Editor/Randomization/Editors/RunInUnitySimulationWindow.cs


Label m_PrevExecutionIdLabel;
Label m_PrevRandomSeedLabel;
RunParameters m_RunParameters;
const string k_SupportedGPUString = "NVIDIA";
[MenuItem("Window/Run in Unity Simulation")]
static void ShowWindow()

async void RunInUnitySimulation()
{
#if PLATFORM_CLOUD_RENDERING
if (!m_SysParamDefinitions[m_SysParamIndex].description.Contains(m_SupportedGPUString))
if (!m_SysParamDefinitions[m_SysParamIndex].description.Contains(k_SupportedGPUString))
{
EditorUtility.DisplayDialog("Unsupported Sysparam",
"The current selection of the Sysparam " + m_SysParamDefinitions[m_SysParamIndex].description +

正在加载...
取消
保存