Singularity/Library/PackageCache/com.unity.test-framework@1..../UnityEditor.TestRunner/TestRun/Tasks/SaveUndoIndexTask.cs

15 lines
395 B
C#
Raw Permalink Normal View History

2024-05-06 14:45:45 -04:00
using System;
using System.Collections;
namespace UnityEditor.TestTools.TestRunner.TestRun.Tasks
{
internal class SaveUndoIndexTask : TestTaskBase
{
internal Func<int> GetUndoGroup = Undo.GetCurrentGroup;
public override IEnumerator Execute(TestJobData testJobData)
{
testJobData.undoGroup = GetUndoGroup();
yield break;
}
}
}