internal static bool RegisterEventEditorGameService() { const int maxEventsPerHour = 100; const int maxItems = 10; const string vendorKey = "unity.services.core.editor"; const int version = 1; var result = EditorAnalytics.RegisterEventWithLimit(k_EventName, maxEventsPerHour, maxItems, vendorKey, version); return(result == AnalyticsResult.Ok); }
static bool EnableAnalytics() { if (!UnityEngine.Analytics.Analytics.enabled) { return(false); } if (!s_EventRegistered) { AnalyticsResult result = EditorAnalytics.RegisterEventWithLimit(k_EventName, k_MaxEventsPerHour, k_MaxNumberOfElements, k_VendorKey); if (result == AnalyticsResult.Ok) { s_EventRegistered = true; } } return(s_EventRegistered); }
static bool RegisterEvent(string eventName) { var analyticsResult = EditorAnalytics.RegisterEventWithLimit(eventName, k_MaxEventsPerHour, k_MaxNumberOfElements, k_VendorKey); return(analyticsResult == AnalyticsResult.Ok); }