async void RunInUnitySimulation()
        {
            m_RunParameters = new RunParameters
            {
                runName              = m_RunNameField.value,
                totalIterations      = m_TotalIterationsField.value,
                instanceCount        = m_InstanceCountField.value,
                sysParamIndex        = m_SysParamIndex,
                scenarioConfig       = (TextAsset)m_ScenarioConfigField.value,
                currentOpenScenePath = SceneManager.GetSceneAt(0).path,
                currentScenario      = FindObjectOfType <ScenarioBase>()
            };
            var runGuid = Guid.NewGuid();

            PerceptionEditorAnalytics.ReportRunInUnitySimulationStarted(
                runGuid,
                m_RunParameters.totalIterations,
                m_RunParameters.instanceCount,
                null);
            try
            {
                ValidateSettings();
                CreateLinuxBuildAndZip();
                await StartUnitySimulationRun(runGuid);
            }
            catch (Exception e)
            {
                EditorUtility.ClearProgressBar();
                PerceptionEditorAnalytics.ReportRunInUnitySimulationFailed(runGuid, e.Message);
                throw;
            }
        }
Exemplo n.º 2
0
 async void RunInUnitySimulation()
 {
     #if PLATFORM_CLOUD_RENDERING
     if (!m_SysParamDefinitions[m_SysParamIndex].description.Contains(m_SupportedGPUString))
     {
         EditorUtility.DisplayDialog("Unsupported Sysparam",
                                     "The current selection of the Sysparam " + m_SysParamDefinitions[m_SysParamIndex].description +
                                     " is not supported by this build target. Please select a sysparam with GPU", "Ok");
         return;
     }
     #endif
     m_RunParameters = new RunParameters
     {
         runName              = m_RunNameField.value,
         totalIterations      = m_TotalIterationsField.value,
         instanceCount        = m_InstanceCountField.value,
         randomSeed           = m_RandomSeedField.value,
         sysParamIndex        = m_SysParamIndex,
         scenarioConfig       = (TextAsset)m_ScenarioConfigField.value,
         currentOpenScenePath = SceneManager.GetSceneAt(0).path,
         currentScenario      = FindObjectOfType <ScenarioBase>()
     };
     var runGuid = Guid.NewGuid();
     PerceptionEditorAnalytics.ReportRunInUnitySimulationStarted(
         runGuid,
         m_RunParameters.totalIterations,
         m_RunParameters.instanceCount,
         null);
     try
     {
         ValidateSettings();
         CreateLinuxBuildAndZip();
         await StartUnitySimulationRun(runGuid);
     }
     catch (Exception e)
     {
         EditorUtility.ClearProgressBar();
         PerceptionEditorAnalytics.ReportRunInUnitySimulationFailed(runGuid, e.Message);
         throw;
     }
 }
        async void RunInUnitySimulation()
        {
            var runGuid = Guid.NewGuid();

            PerceptionEditorAnalytics.ReportRunInUnitySimulationStarted(
                runGuid,
                m_TotalIterationsField.value,
                m_InstanceCountField.value,
                null);
            try
            {
                ValidateSettings();
                CreateLinuxBuildAndZip();
                await StartUnitySimulationRun(runGuid);
            }
            catch (Exception e)
            {
                EditorUtility.ClearProgressBar();
                PerceptionEditorAnalytics.ReportRunInUnitySimulationFailed(runGuid, e.Message);
                throw;
            }
        }