浏览代码

Fix test fail

/fix_label_config_editor_indexing
Mohsen Kamalzadeh 3 年前
当前提交
9b0e14d1
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
      TestProjects/PerceptionURP/Assets/Tests/Editor/PerceptionCameraEditorUrpTests.cs

2
TestProjects/PerceptionURP/Assets/Tests/Editor/PerceptionCameraEditorUrpTests.cs


var gameObject = new GameObject();
gameObject.SetActive(false);
gameObject.AddComponent<Camera>();
gameObject.AddComponent<UniversalAdditionalCameraData>();
var perceptionCamera = gameObject.AddComponent<PerceptionCamera>();
gameObject.SetActive(true);
LogAssert.Expect(LogType.Error, "GroundTruthRendererFeature must be present on the ScriptableRenderer associated with the camera. The ScriptableRenderer can be accessed through Edit -> Project Settings... -> Graphics -> Scriptable Render Pipeline Settings -> Renderer List.");

正在加载...
取消
保存