暫無描述
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.

GenericEditorEditFieldEvent.cs 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. namespace UnityEditor.Purchasing
  3. {
  4. internal class GenericEditorEditFieldEvent : IEditorAnalyticsEvent
  5. {
  6. readonly string m_Component;
  7. readonly string m_Tool;
  8. readonly string m_FieldName;
  9. internal GenericEditorEditFieldEvent(string component, string tool, string fieldName)
  10. {
  11. m_Component = component;
  12. m_Tool = tool;
  13. m_FieldName = fieldName;
  14. }
  15. public virtual EditorAnalyticsDataSignature GetSignature()
  16. {
  17. return SignatureDefinitions.k_EditorEditFieldSignature;
  18. }
  19. [Serializable]
  20. public struct GenericEditorEditFieldParams
  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 tool;
  24. public string component;
  25. public string name;
  26. public string platform;
  27. }
  28. public object CreateEventParams(string platformName, string packageKey)
  29. {
  30. return new GenericEditorEditFieldParams
  31. {
  32. tool = m_Tool,
  33. component = m_Component,
  34. name = m_FieldName,
  35. platform = platformName
  36. };
  37. }
  38. }
  39. }