lib_unity_purchase/Editor/Analytics/Helpers/GenericEditorFieldEditEvent...

18 lines
557 B
C#
Raw Permalink Normal View History

2024-01-29 18:49:33 +08:00
namespace UnityEditor.Purchasing
{
static class GenericEditorFieldEditEventSenderHelpers
{
internal static void SendCatalogEditEvent(string fieldName)
{
BuildAndSendEvent(EventComponents.k_ComponentCodeless, EventTools.k_ToolCatalog, fieldName);
}
static void BuildAndSendEvent(string component, string action, string name)
{
var newEvent = new GenericEditorEditFieldEvent(component, action, name);
PurchasingServiceAnalyticsSender.SendEvent(newEvent);
}
}
}