/// <summary> /// Static constructor permits a once-on-load analytics collection event. /// </summary> static ARCoreAnalytics() { // Create the new instance. Instance = new ARCoreAnalytics(); Instance.Load(); // Use the Editor Update callback to monitor the communication to the server. EditorApplication.update += new EditorApplication.CallbackFunction(Instance._OnAnalyticsUpdate); }
/// <summary> /// Static constructor permits a once-on-load analytics collection event. /// </summary> static ARCoreAnalytics() { // Create the new instance. Instance = new ARCoreAnalytics(); Instance.Load(); // Send analytics immediately. Instance.SendAnalytics(k_GoogleAnalyticsHost, LogRequestUtils.BuildLogRequest(), false); // Use the Editor Update callback to monitor the communication to the server. EditorApplication.update += new EditorApplication.CallbackFunction(Instance._OnAnalyticsUpdate); }