暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

MarkRunAsPlayModeTask.cs 614B

12345678910111213141516171819
  1. using System.Collections;
  2. namespace UnityEditor.TestTools.TestRunner.TestRun.Tasks
  3. {
  4. internal class MarkRunAsPlayModeTask : TestTaskBase
  5. {
  6. public MarkRunAsPlayModeTask()
  7. {
  8. RerunAfterResume = true;
  9. }
  10. public override IEnumerator Execute(TestJobData testJobData)
  11. {
  12. // This is a workaround to raise the signal that Playmode Launcher is running.
  13. // It is used by the graphics test framework, as there is no api to provide that information yet.
  14. PlaymodeLauncher.IsRunning = true;
  15. yield break;
  16. }
  17. }
  18. }