浏览代码

fixed compile error and null pointer

/generic-asset-sources
Mohsen Kamalzadeh 3 年前
当前提交
3b127d02
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 5
      com.unity.perception/Editor/Randomization/Editors/RunInUnitySimulationWindow.cs

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


m_SelectedBuildPathTextField = root.Q<TextField>("selected-build-path");
m_SelectedBuildPathTextField.isReadOnly = true;
m_BuildPathField = root.Q<TextField>("selected-build-path");
m_BuildIdField = root.Q<TextField>("build-id");
UpdateBuildIdElements((BuildIdKind) m_BuildTypeMenu.value);

if (buildId == null)
return;
await StartUnitySimulationRun(runGuid, buildId);
StartUnitySimulationRun(runGuid, buildId);
}
catch (Exception e)
{

return appParamIds;
}
async Task StartUnitySimulationRun(Guid runGuid, string buildId)
void StartUnitySimulationRun(Guid runGuid, string buildId)
{
// Generate and upload app-params
EditorUtility.DisplayProgressBar("Unity Simulation Run", "Uploading app-params...", 0.90f);

正在加载...
取消
保存