arenos-nexus/Arenos Nexus/Library/PackageCache/com.unity.test-framework@038a2b0cacd2/UnityEditor.TestRunner/TestLaunchers/EditModeLauncherContextSettings.cs
Daniel 2e704cae70 init
Init Commit Unity
2025-09-25 22:01:28 +02:00

32 lines
703 B
C#

using System;
using UnityEngine;
namespace UnityEditor.TestTools.TestRunner
{
internal class EditModeLauncherContextSettings : IDisposable
{
private bool m_RunInBackground;
public EditModeLauncherContextSettings()
{
SetupProjectParameters();
}
public void Dispose()
{
CleanupProjectParameters();
}
private void SetupProjectParameters()
{
m_RunInBackground = Application.runInBackground;
Application.runInBackground = true;
}
private void CleanupProjectParameters()
{
Application.runInBackground = m_RunInBackground;
}
}
}