설명 없음
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.

AdaptivePerformanceUsageAnalyticsArgs.cs 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. using System;
  2. using UnityEngine;
  3. namespace UnityEditor.AdaptivePerformance.Editor.Analytics
  4. {
  5. [Serializable]
  6. struct AdaptivePerformanceUsageAnalyticsArgs
  7. {
  8. /// <summary>
  9. /// The actual event type which define the context of the event under a common table.
  10. /// </summary>
  11. [SerializeField]
  12. private string eventType;
  13. /// <summary>
  14. /// The <see cref="GUID"/> of the build.
  15. /// </summary>
  16. [SerializeField]
  17. private string buildGuid;
  18. /// <summary>
  19. /// The target platform.
  20. /// </summary>
  21. [SerializeField]
  22. private string targetPlatform;
  23. /// <summary>
  24. /// The target platform version.
  25. /// </summary>
  26. [SerializeField]
  27. private string targetPlatformVersion;
  28. /// <summary>
  29. /// List of Adaptive Performance Providers installed.
  30. /// </summary>
  31. [SerializeField]
  32. private AdaptivePerformanceInfo[] apProvidersInfo;
  33. public AdaptivePerformanceUsageAnalyticsArgs(
  34. EventType eventType,
  35. AdaptivePerformanceInfo[] apProvidersInfo,
  36. GUID? buildGuid = null,
  37. BuildTarget? targetPlatform = null,
  38. string targetPlatformVersion = null)
  39. {
  40. this.eventType = eventType.ToString();
  41. this.buildGuid = buildGuid.ToString();
  42. this.targetPlatform = targetPlatform?.ToString();
  43. this.apProvidersInfo = apProvidersInfo;
  44. this.targetPlatformVersion = targetPlatformVersion;
  45. }
  46. public enum EventType
  47. {
  48. BuildPlayer
  49. }
  50. [Serializable]
  51. public struct AdaptivePerformanceInfo
  52. {
  53. /// <summary>
  54. /// Name of the AR Manager.
  55. /// </summary>
  56. public string name;
  57. /// <summary>
  58. /// <c>True</c> if the AR Manager is active in the scene, otherwise <c>False</c>.
  59. /// </summary>
  60. public bool active;
  61. }
  62. }
  63. }