public static void SubmitFPS() { //average FPS if (GameAnalytics.SettingsGA.SubmitFpsAverage) { float timeSinceUpdate = Time.time - _lastUpdateAvg; if (timeSinceUpdate > 1.0f) { float fpsSinceUpdate = _frameCountAvg / timeSinceUpdate; _lastUpdateAvg = Time.time; _frameCountAvg = 0; if (fpsSinceUpdate > 0) { GA_Design.NewEvent("GA:AverageFPS", ((int)fpsSinceUpdate)); } } } if (GameAnalytics.SettingsGA.SubmitFpsCritical) { if (_criticalFpsCount > 0) { GA_Design.NewEvent("GA:CriticalFPS", _criticalFpsCount); _criticalFpsCount = 0; } } }
public static void NewDesignEvent(string eventName, float eventValue) { if (!GameAnalyticsSDK.GameAnalytics._hasInitializeBeenCalled) { return; } GA_Design.NewEvent(eventName, eventValue, null); }
public static void NewDesignEvent(string eventName, float eventValue) { if (!GameAnalytics._hasInitializeBeenCalled) { return; } GA_Design.NewEvent(eventName, eventValue, (IDictionary <string, object>)null); }
/// <summary> /// Track any type of design event that you want to measure i.e. GUI elements or tutorial steps. Custom dimensions are not supported. /// </summary> /// <param name="eventName">String can consist of 1 to 5 segments. Segments are seperated by ':' and segments can have a max length of 16. (e.g. segment1:anotherSegment:gold).</param> /// <param name="eventValue">Number value of event.</param> public static void NewDesignEvent(string eventName, float eventValue) { if (!GameAnalytics._hasInitializeBeenCalled) { Debug.LogWarning("GameAnalytics: REMEMBER THE SDK NEEDS TO BE MANUALLY INITIALIZED NOW"); } GA_Design.NewEvent(eventName, eventValue); }
/// <summary> /// Track any type of design event that you want to measure i.e. GUI elements or tutorial steps. Custom dimensions are not supported. /// </summary> /// <param name="eventName">String can consist of 1 to 5 segments. Segments are seperated by ':' and segments can have a max length of 16. (e.g. segment1:anotherSegment:gold).</param> public static void NewDesignEvent(string eventName) { if (!GameAnalytics._hasInitializeBeenCalled) { Debug.LogError("GameAnalytics: REMEMBER THE SDK NEEDS TO BE MANUALLY INITIALIZED NOW"); return; } GA_Design.NewEvent(eventName, null); }
public static void NewDesignEvent(string eventName, float eventValue) { if (!_hasInitializeBeenCalled) { UnityEngine.Debug.LogError("GameAnalytics: REMEMBER THE SDK NEEDS TO BE MANUALLY INITIALIZED NOW"); } else { GA_Design.NewEvent(eventName, eventValue, null); } }
/// <summary> /// Track any type of design event that you want to measure i.e. GUI elements or tutorial steps. Custom dimensions are not supported. /// </summary> /// <param name="eventName">String can consist of 1 to 5 segments. Segments are seperated by ':' and segments can have a max length of 16. (e.g. segment1:anotherSegment:gold).</param> /// <param name="eventValue">Number value of event.</param> public static void NewDesignEvent(string eventName, float eventValue) { GA_Design.NewEvent(eventName, eventValue); }
/// <summary> /// Track any type of design event that you want to measure i.e. GUI elements or tutorial steps. Custom dimensions are not supported. /// </summary> /// <param name="eventName">String can consist of 1 to 5 segments. Segments are seperated by ':' and segments can have a max length of 16. (e.g. segment1:anotherSegment:gold).</param> public static void NewDesignEvent(string eventName) { GA_Design.NewEvent(eventName); }