29 lines
812 B
C#
29 lines
812 B
C#
using System;
|
|
using UnityEngine.SceneManagement;
|
|
using UnityEngine.TestTools.TestRunner.GUI;
|
|
|
|
namespace UnityEngine.TestTools.TestRunner
|
|
{
|
|
[Serializable]
|
|
internal class PlaymodeTestsControllerSettings
|
|
{
|
|
[SerializeField]
|
|
public TestRunnerFilter filter;
|
|
public bool sceneBased;
|
|
public string originalScene;
|
|
public string bootstrapScene;
|
|
|
|
public static PlaymodeTestsControllerSettings CreateRunnerSettings(TestRunnerFilter filter)
|
|
{
|
|
var settings = new PlaymodeTestsControllerSettings
|
|
{
|
|
filter = filter,
|
|
sceneBased = false,
|
|
originalScene = SceneManager.GetActiveScene().path,
|
|
bootstrapScene = null
|
|
};
|
|
return settings;
|
|
}
|
|
}
|
|
}
|