DebuggerComponent.EnvironmentInformationWindow.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //------------------------------------------------------------
  2. // Game Framework v3.x
  3. // Copyright © 2013-2017 Jiang Yin. All rights reserved.
  4. // Homepage: http://gameframework.cn/
  5. // Feedback: mailto:jiangyin@gameframework.cn
  6. //------------------------------------------------------------
  7. using UnityEngine;
  8. namespace UnityGameFramework.Runtime
  9. {
  10. public partial class DebuggerComponent
  11. {
  12. private sealed class EnvironmentInformationWindow : ScrollableDebuggerWindowBase
  13. {
  14. protected override void OnDrawScrollableWindow()
  15. {
  16. GUILayout.Label("<b>Environment Information</b>");
  17. GUILayout.BeginVertical("box");
  18. {
  19. DrawItem("Product Name:", Application.productName);
  20. DrawItem("Company Name:", Application.companyName);
  21. #if UNITY_5_6_OR_NEWER
  22. DrawItem("Game Identifier:", Application.identifier);
  23. #else
  24. DrawItem("Game Identifier:", Application.bundleIdentifier);
  25. #endif
  26. DrawItem("Application Version:", Application.version);
  27. DrawItem("Unity Version:", Application.unityVersion);
  28. DrawItem("Platform:", Application.platform.ToString());
  29. DrawItem("System Language:", Application.systemLanguage.ToString());
  30. DrawItem("Cloud Project Id:", Application.cloudProjectId);
  31. #if UNITY_5_6_OR_NEWER
  32. DrawItem("Build Guid:", Application.buildGUID);
  33. #endif
  34. DrawItem("Target Frame Rate:", Application.targetFrameRate.ToString());
  35. DrawItem("Internet Reachability:", Application.internetReachability.ToString());
  36. DrawItem("Background Loading Priority:", Application.backgroundLoadingPriority.ToString());
  37. DrawItem("Is Playing:", Application.isPlaying.ToString());
  38. #if UNITY_5_3 || UNITY_5_4
  39. DrawItem("Is Showing Splash Screen:", Application.isShowingSplashScreen.ToString());
  40. #endif
  41. DrawItem("Run In Background:", Application.runInBackground.ToString());
  42. #if UNITY_5_5_OR_NEWER
  43. DrawItem("Install Name:", Application.installerName);
  44. #endif
  45. DrawItem("Install Mode:", Application.installMode.ToString());
  46. DrawItem("Sandbox Type:", Application.sandboxType.ToString());
  47. DrawItem("Is Mobile Platform:", Application.isMobilePlatform.ToString());
  48. DrawItem("Is Console Platform:", Application.isConsolePlatform.ToString());
  49. DrawItem("Is Editor:", Application.isEditor.ToString());
  50. #if UNITY_5_6_OR_NEWER
  51. DrawItem("Is Focused:", Application.isFocused.ToString());
  52. #endif
  53. #if UNITY_5_3
  54. DrawItem("Stack Trace Log Type:", Application.stackTraceLogType.ToString());
  55. #endif
  56. }
  57. GUILayout.EndVertical();
  58. }
  59. }
  60. }
  61. }