DebuggerComponent.PathInformationWindow.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //------------------------------------------------------------
  2. // Game Framework
  3. // Copyright © 2013-2021 loyalsoft. All rights reserved.
  4. // Homepage: http://www.game7000.com/
  5. // Feedback: http://www.game7000.com/
  6. //------------------------------------------------------------
  7. using GameFramework;
  8. using System;
  9. using UnityEngine;
  10. namespace UnityGameFramework.Runtime
  11. {
  12. public sealed partial class DebuggerComponent : GameFrameworkComponent
  13. {
  14. private sealed class PathInformationWindow : ScrollableDebuggerWindowBase
  15. {
  16. protected override void OnDrawScrollableWindow()
  17. {
  18. GUILayout.Label("<b>Path Information</b>");
  19. GUILayout.BeginVertical("box");
  20. {
  21. DrawItem("Current Directory", Utility.Path.GetRegularPath(Environment.CurrentDirectory));
  22. DrawItem("Data Path", Utility.Path.GetRegularPath(Application.dataPath));
  23. DrawItem("Persistent Data Path", Utility.Path.GetRegularPath(Application.persistentDataPath));
  24. DrawItem("Streaming Assets Path", Utility.Path.GetRegularPath(Application.streamingAssetsPath));
  25. DrawItem("Temporary Cache Path", Utility.Path.GetRegularPath(Application.temporaryCachePath));
  26. #if UNITY_2018_3_OR_NEWER
  27. DrawItem("Console Log Path", Utility.Path.GetRegularPath(Application.consoleLogPath));
  28. #endif
  29. }
  30. GUILayout.EndVertical();
  31. }
  32. }
  33. }
  34. }