Files
Hasebe/Library/PackageCache/com.unity.test-framework@33f8a1e9aefd/UnityEditor.TestRunner/TestRun/Tasks/MarkRunAsPlayModeTask.cs
T
2026-09-25 00:42:08 +03:00

20 lines
614 B
C#

using System.Collections;
namespace UnityEditor.TestTools.TestRunner.TestRun.Tasks
{
internal class MarkRunAsPlayModeTask : TestTaskBase
{
public MarkRunAsPlayModeTask()
{
RerunAfterResume = true;
}
public override IEnumerator Execute(TestJobData testJobData)
{
// This is a workaround to raise the signal that Playmode Launcher is running.
// It is used by the graphics test framework, as there is no api to provide that information yet.
PlaymodeLauncher.IsRunning = true;
yield break;
}
}
}