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

22 lines
841 B
C#

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);
}
}
}