jump-game/Jump Game/Library/PackageCache/com.unity.test-framework@1.0.13/UnityEditor.TestRunner/TestRunnerWindowSettings.cs
2020-01-29 10:05:38 +02:00

27 lines
637 B
C#

namespace UnityEditor.TestTools.TestRunner
{
internal class TestRunnerWindowSettings
{
public bool verticalSplit;
private readonly string m_PrefsKey;
public TestRunnerWindowSettings(string prefsKey)
{
m_PrefsKey = prefsKey;
verticalSplit = EditorPrefs.GetBool(m_PrefsKey + ".verticalSplit", true);
}
public void ToggleVerticalSplit()
{
verticalSplit = !verticalSplit;
Save();
}
private void Save()
{
EditorPrefs.SetBool(m_PrefsKey + ".verticalSplit", verticalSplit);
}
}
}