You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
703 B
31 lines
703 B
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; |
|
} |
|
} |
|
}
|
|
|