Нема описа
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.

GenericEditorClickCheckboxEvent.cs 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. namespace UnityEditor.Purchasing
  3. {
  4. internal class GenericEditorClickCheckboxEvent : IEditorAnalyticsEvent
  5. {
  6. readonly string m_Component;
  7. readonly string m_Tool;
  8. readonly string m_Name;
  9. readonly bool m_Value;
  10. internal GenericEditorClickCheckboxEvent(string component, string tool, string name, bool value)
  11. {
  12. m_Component = component;
  13. m_Tool = tool;
  14. m_Name = name;
  15. m_Value = value;
  16. }
  17. public virtual EditorAnalyticsDataSignature GetSignature()
  18. {
  19. return SignatureDefinitions.k_EditorClickCheckboxSignature;
  20. }
  21. [Serializable]
  22. public struct GenericEditorClickCheckboxParams
  23. {
  24. //Important: These param names come from the DevEx core. Do not change/add/remove them until this event changes version
  25. public string name;
  26. public string tool;
  27. public string component;
  28. public bool value;
  29. public string platform;
  30. }
  31. public object CreateEventParams(string platformName, string packageKey)
  32. {
  33. return new GenericEditorClickCheckboxParams
  34. {
  35. name = m_Name,
  36. tool = m_Tool,
  37. component = m_Component,
  38. value = m_Value,
  39. platform = platformName
  40. };
  41. }
  42. }
  43. }