Hammer HubHammer Hub
Events

Predefined Game Economy Events

Track in-game currency earn and spend transactions.

Game economy events track in-game currency transactions, ensuring a clear, structured record of how players earn and spend resources. Call these from the correct locations within the game to maintain accurate analytics.

Usage example

Hammer.Instance.ANALYTICS_GameEconomyEvents.Earned_Soft_Currency(12, "gold", "levelComplete");
Hammer.Instance.ANALYTICS_GameEconomyEvents.Spent_Soft_Currency(15, "gold", "unlockCostume3");

Parameter definitions

ParameterTypeDescription
amountintThe amount of currency earned or spent.
typestringThe type of currency (e.g. "gold", "gems").
wherestringThe location or reason for the transaction (e.g. "characterOutfitPurchase", "levelCompletePrize").

On this page