DebuggerComponent.WebPlayerInformationWindow.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  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 WebPlayerInformationWindow : ScrollableDebuggerWindowBase
  13. {
  14. protected override void OnDrawScrollableWindow()
  15. {
  16. GUILayout.Label("<b>Web Player Information</b>");
  17. GUILayout.BeginVertical("box");
  18. {
  19. DrawItem("Is Web Player:", Application.isPlaying.ToString());
  20. DrawItem("Absolute URL:", Application.absoluteURL);
  21. //DrawItem("Source Value:", Application.srcValue);
  22. DrawItem("Streamed Bytes:", Application.streamedBytes.ToString());
  23. #if UNITY_5_3 || UNITY_5_4
  24. DrawItem("Web Security Enabled:", Application.webSecurityEnabled.ToString());
  25. DrawItem("Web Security Host URL:", Application.webSecurityHostUrl.ToString());
  26. #endif
  27. }
  28. GUILayout.EndVertical();
  29. }
  30. }
  31. }
  32. }