Files
NetCode/Library/PackageCache/com.unity.test-framework@d97b7cd61ded/UnityEditor.TestRunner/TestRun/Tasks/SaveUndoIndexTask.cs
T
2025-12-21 18:31:02 +02:00

16 lines
396 B
C#

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;
}
}
}