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