暫無描述
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.

TestRunnerWindowSettings.cs 652B

12345678910111213141516171819202122232425262728
  1. using System;
  2. namespace UnityEditor.TestTools.TestRunner
  3. {
  4. internal class TestRunnerWindowSettings
  5. {
  6. public bool verticalSplit;
  7. private readonly string m_PrefsKey;
  8. public TestRunnerWindowSettings(string prefsKey)
  9. {
  10. m_PrefsKey = prefsKey;
  11. verticalSplit = EditorPrefs.GetBool(m_PrefsKey + ".verticalSplit", true);
  12. }
  13. public void ToggleVerticalSplit()
  14. {
  15. verticalSplit = !verticalSplit;
  16. Save();
  17. }
  18. private void Save()
  19. {
  20. EditorPrefs.SetBool(m_PrefsKey + ".verticalSplit", verticalSplit);
  21. }
  22. }
  23. }