DebuggerComponent.WebPlayerInformationWindow.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 UnityEngine;
  8. namespace UnityGameFramework.Runtime
  9. {
  10. public sealed partial class DebuggerComponent : GameFrameworkComponent
  11. {
  12. private sealed class WebPlayerInformationWindow : ScrollableDebuggerWindowBase
  13. {
  14. protected override void OnDrawScrollableWindow()
  15. {
  16. GUILayout.Label("<b>Web Player Information</b>");
  17. GUILayout.BeginVertical("box");
  18. {
  19. #if !UNITY_2017_2_OR_NEWER
  20. DrawItem("Is Web Player", Application.isWebPlayer.ToString());
  21. #endif
  22. DrawItem("Absolute URL", Application.absoluteURL);
  23. #if !UNITY_2017_2_OR_NEWER
  24. DrawItem("Source Value", Application.srcValue);
  25. #endif
  26. #if !UNITY_2018_2_OR_NEWER
  27. DrawItem("Streamed Bytes", Application.streamedBytes.ToString());
  28. #endif
  29. #if UNITY_5_3 || UNITY_5_4
  30. DrawItem("Web Security Enabled", Application.webSecurityEnabled.ToString());
  31. DrawItem("Web Security Host URL", Application.webSecurityHostUrl.ToString());
  32. #endif
  33. }
  34. GUILayout.EndVertical();
  35. }
  36. }
  37. }
  38. }