浏览代码

Cleanup after rebase.

/main
Jon Hogins 5 年前
当前提交
9cbb2bff
共有 4 个文件被更改,包括 7 次插入17 次删除
  1. 13
      com.unity.perception/Tests/Editor/PerceptionCameraEditorTests.cs
  2. 3
      com.unity.perception/Tests/Runtime/GroundTruthTests/BoundingBox2DTests.cs
  3. 1
      com.unity.perception/Tests/Runtime/GroundTruthTests/GroundTruthTestBase.cs
  4. 7
      com.unity.perception/Tests/Runtime/GroundTruthTests/PerceptionCameraIntegrationTests.cs

13
com.unity.perception/Tests/Editor/PerceptionCameraEditorTests.cs


using System;
using System.Collections;
using System.Collections.Generic;
using Unity.Collections;
using UnityEngine.Perception;
using UnityEngine.Perception.Sensors;
using UnityEngine.Perception.GroundTruth;
using UnityEngine.SceneManagement;
using UnityEngine.TestTools;
namespace EditorTests

[UnityTest]
public IEnumerator EditorPause_DoesNotLogErrors()
{
int sceneCount = EditorSceneManager.sceneCount;
int sceneCount = SceneManager.sceneCount;
EditorSceneManager.CloseScene(EditorSceneManager.GetSceneAt(i), true);
EditorSceneManager.CloseScene(SceneManager.GetSceneAt(i), true);
}
EditorSceneManager.NewScene(NewSceneSetup.EmptyScene);

yield return new ExitPlayMode();
}
static GameObject SetupCamera(LabelingConfiguration labelingConfiguration)
static void SetupCamera(LabelingConfiguration labelingConfiguration)
{
var cameraObject = new GameObject();
cameraObject.SetActive(false);

perceptionCamera.produceObjectCountAnnotations = true;
cameraObject.SetActive(true);
return cameraObject;
}
}
}

3
com.unity.perception/Tests/Runtime/GroundTruthTests/BoundingBox2DTests.cs


using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine.Experimental.Rendering;
using UnityEngine.Perception;
using UnityEngine.Perception.GroundTruth;
using UnityEngine.TestTools;

1
com.unity.perception/Tests/Runtime/GroundTruthTests/GroundTruthTestBase.cs


using System.Collections.Generic;
using System.IO;
using NUnit.Framework;
using Unity.Simulation;
using UnityEngine;
using UnityEngine.Perception.GroundTruth;
using Object = UnityEngine.Object;

7
com.unity.perception/Tests/Runtime/GroundTruthTests/PerceptionCameraIntegrationTests.cs


using System.Collections.Generic;
using System.IO;
using NUnit.Framework;
using Unity.Collections;
using UnityEngine.Perception;
using UnityEngine.Perception.Sensors;
using UnityEngine.Perception.GroundTruth;
using Object = UnityEngine.Object;
namespace GroundTruthTests
{

""height"": {Screen.height / 2:F1}
}}";
var labelingConfiguration = CreateLabelingConfiguration();
var camera = SetupCamera(labelingConfiguration, pc =>
SetupCamera(labelingConfiguration, pc =>
{
pc.produceBoundingBoxAnnotations = true;
});

正在加载...
取消
保存