Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

GenericEditorClickMenuItemEvent.cs 1.3KB

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