Class GameAnalyticsModule
Wraps the GameAnalytics SDK for design events and resource economy tracking.
public static class GameAnalyticsModule
- Inheritance
-
GameAnalyticsModule
- Inherited Members
Properties
- IsInitialized
Whether the module has been successfully initialized.
Initialization
- Initialize()
Initializes the GameAnalytics SDK using the credentials configured in the GameAnalytics settings asset.
Methods
- LogEvent(string)
Logs a named design event with no additional data.
- LogEvent(string, Dictionary<string, object>)
Logs a named design event with custom parameters.
- LogResourceSink(string, float, string, string)
Logs a resource sink event — the player spent
amountunits ofcurrency(e.g., spent coins, consumed gems).
- LogResourceSource(string, float, string, string)
Logs a resource source event — the player gained
amountunits ofcurrency(e.g., earned coins, received gems).