jump-game/Jump Game/Library/PackageCache/com.unity.test-framework@1.0.13/UnityEditor.TestRunner/TestLaunchers/EditModeLauncherContextSettings.cs

32 lines
703 B
C#
Raw Normal View History

2020-01-29 08:05:38 +00:00
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;
}
}
}