lib_unity_purchase/Editor/Analytics/Helpers/GenericEditorClickCheckboxE...

22 lines
841 B
C#
Raw Normal View History

2024-01-29 18:49:33 +08:00
namespace UnityEditor.Purchasing
{
static class GenericEditorClickCheckboxEventSenderHelpers
{
internal static void SendCatalogAutoInitToggleEvent(bool value)
{
BuildAndSendEvent(EventComponents.k_ComponentCodeless, EventTools.k_ToolCatalog, EventUINames.k_UINameAutoInit, value);
}
internal static void SendCatalogUgsAutoInitToggleEvent(bool value)
{
BuildAndSendEvent(EventComponents.k_ComponentCodeless, EventTools.k_ToolCatalog, EventUINames.k_UINameUgsAutoInit, value);
}
static void BuildAndSendEvent(string component, string tool, string name, bool value)
{
var newEvent = new GenericEditorClickCheckboxEvent(component, tool, name, value);
PurchasingServiceAnalyticsSender.SendEvent(newEvent);
}
}
}